Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to access "Processor Affinity" screen without Task Manager?

30 Jun 2013   #11
GbeTech

Win7 Pro SP1 64
 
 

This forum is awesome, truly great guys.
I actually don't like to overburden my context menu, but if I did it would be great.


The above code isn't correct, here's a complete one:


Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

^space::
Run taskmgr.exe
Sleep 200 ; ms
IfWinExist Windows Task Manager
{
WinActivate
}
Send F
Sleep 500 ; ms
Send F
Sleep 500 ; ms

Click right 85, 140	;open affinity
Sleep 500 ; ms
Click 150, 328
Sleep 500 ; ms

Click 30, 85	;all proc
Sleep 500 ; ms
Click 30, 102	;0 V
Sleep 500 ; ms
Click 200, 300	;close
Sleep 500 ; ms

Click right 85, 140	;open affinity
Sleep 500 ; ms
Click 150, 328
Sleep 500 ; ms

Click 30, 102	; 0 X
Sleep 500 ; ms
Click 30, 119	;1 V
Sleep 500 ; m
Click 200, 300	;close
Sleep 500 ; ms

Click right 85, 140	;open affinity
Sleep 500 ; ms
Click 150, 328
Sleep 500 ; ms

Click 30, 119	;1 X
Sleep 500 ; m
Click 30, 136	;2 V
Sleep 500 ; m
Click 200, 300	;close
Sleep 500 ; ms

Click right 85, 140	;open affinity
Sleep 500 ; ms
Click 150, 328
Sleep 500 ; ms

Click 30, 136	;2 X
Sleep 500 ; m
Click 30, 153	;3 V
Sleep 500 ; m
Click 200, 300	;close
Sleep 500 ; ms

Click right 85, 140	;open affinity
Sleep 500 ; ms
Click 150, 328
Sleep 500 ; ms

Click 30, 153	;3 X
Sleep 500 ; m
Click 30, 170	;4 V
Sleep 500 ; m
Click 200, 300	;close
Sleep 500 ; ms

Click right 85, 140	;open affinity
Sleep 500 ; ms
Click 150, 328
Sleep 500 ; ms

Click 30, 170 	;4 X
Sleep 500 ; m
Click 30, 187	;5 V
Sleep 500 ; m
Click 200, 300	;close
Sleep 500 ; ms

Click right 85, 140	;open affinity
Sleep 500 ; ms
Click 150, 328
Sleep 500 ; ms

Click 30, 187	;5 X
Sleep 500 ; m
Click 30, 204	;6 V
Sleep 500 ; m
Click 200, 300	;close
Sleep 500 ; ms

Click right 85, 140	;open affinity
Sleep 500 ; ms
Click 150, 328
Sleep 500 ; ms

Click 30, 204 	;6 X
Sleep 500 ; m
Click 30, 221	;7 V
Sleep 500 ; m
Click 200, 300	;close
Sleep 500 ; ms

Click right 85, 140	;open affinity
Sleep 500 ; ms
Click 150, 328
Sleep 500 ; ms

Click 30, 221	;7 X
Sleep 500 ; m
Click 30, 85	;all proc
Sleep 500 ; ms
Click 200, 300	;close
Sleep 500 ; ms


WinClose Windows Task Manager
IfWinExist FA Forever 0.8.53
{
WinActivate
}
IfWinExist Forged Alliance
{
WinActivate
}



My System SpecsSystem Spec
.
30 Jun 2013   #12
UsernameIssues

W7 Pro SP1 64bit
 
 

I would replace the 200 ms sleep with a winwait statement

Code:
#NoEnv
SendMode Input

Run taskmgr.exe
WinWait, Windows Task Manager
IfWinExist Windows Task Manager
{
WinActivate
}
Send Clock
Sleep 500
Send, +{F10}
Sleep 500
Send, a
Sleep 500
WinWait, Processor Affinity
IfWinExist Processor Affinity
{
WinActivate
}
Sleep 500
Send, {DOWN 2}
Send, {SPACE}
Send, {ENTER}
As you know, hard coding sleep statements is hard to get right since system response time can vary.

The code above also demonstrates:
...sending more of the process name (instead of sending two F keys)
...sending keystrokes (instead of using mouse clicks).


If you stick with AHK, I hope that you are using their customized editor:
http://www.autohotkey.net/~fincs/Sci...oHotkey_3/web/

edit: it is kind of sad that the devs at AHK are still using AutoIt3 Window Spy
My System SpecsSystem Spec
Reply

 How to access "Processor Affinity" screen without Task Manager?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Force Task Manager "Show processes from all users" always enabled.
Is there a way to force Task Manager to open with the "Show processes from all users" option enabled? I created a shortcut and added "/1" (without quotes) in the property target line but it did not work. (I know, one click will accomplish this but I just like to tweak!) Disregard. Found...
General Discussion
Simpler access to "Task Manager"
When I want "TaskManager", it is often in an urgent situation ... ... like a lockup or when I want to see running services/apps immediately In WinXP Ctrl+Alt+Delete opened taskmgr.exe In Win7, Ctrl+Alt+Delete opens an intermediate screen with 7 options of which only one is "Start Task...
Performance & Maintenance
The "Applications" screen in Task Manager has disappeared!
When I launch Task Manager, the only screen I have access to is the Processes screen - and I do not have any options to see what applications are running, or anything other than which processes are running, which makes it much more difficult to determine what's going on with my PC. I have run...
General Discussion
how to save my affinity setting in task manager
hello all i want to change my affinity settings in task manager but when i restart the pc it change as it was before so is their anything i can do to save the affinity like program or something ? my pc is windows 7 64 bit thank you all
Performance & Maintenance
"Windows Task Manager has stopped working" anytime I try to run it
Hello, I'd be very glad if anyone could help me. My OS version is Windows 7 Home Premium 64bit. Whenever I try to run the task manager, either by pressing Alt+Ctrl+Del and selecting it or right clicking on the task bar, the window opens but immediately an error is displayed "Windows Task...
BSOD Help and Support
How to default the "SHOW PROCESSES FOR ALL USERS" in task manager
Using TASK MANAGER, as I frequently do, under w7 I have to re-check the SHOW PROCESSES FOR ALL USERS button each time I restart TASK MANAGER. Is there a way to force it to default to showing all users? Thanks
Performance & Maintenance


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:28.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App