sw2 / activatebynum

Quick task switching with Win+[1,2,...,0]
0 stars 0 forks source link

DllCall("SwitchToThisWindow") instead of WinActivate #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
FYI - in playing with this script, I found that it leads to much faster 
switching and smoother operation to use:
DllCall("SwitchToThisWindow", "UInt", hwnd, "UInt", 1)
instead of:
WinActivate, ahk_id %hwnd%

Original issue reported on code.google.com by robertco...@yahoo.com on 22 Mar 2013 at 1:34

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
(This is an enhancement). I found an even faster way which involves 
DllCall("AttachThreadInput") and DllCall("ShowWindow") which is shown here. The 
speed matters more if you are cycling through windows and less if you are just 
activating a single one with Win+Num. Thanks.
http://www.autohotkey.com/board/topic/91577-taskbarnavigation-ordered-left-right
-cycle-through-task-bar-alt-tab-replacement/#entry577793

Original comment by robertco...@yahoo.com on 23 Mar 2013 at 7:08