rodfell
Joined: 05 Oct 2007 Posts: 138 Location: Bundaberg (Bundy), Qld, Australia
|
Posted: Sat Jul 05, 2008 10:34 am Post subject: simple window switching |
|
|
switch between windows in a similar way to alt-tab, but with the whole window not just an icon. repeatedly hit the tab button to switch windows. tested on xp | Code: | tab::
detecthiddenwindows off
if (a_thishotkey<>a_priorhotkey or a_timesincepriorhotkey>10000) ;10 second timeout
{
count=0
WinGet, id, list,,, Program Manager
}
count+=1
winnumber:=mod(count,id-1)+2 ;lowest number possible is 2, so id1 (explorer shell) is not activated
winminimizeall ; optional, clears clutter
winactivate % "ahk_id " . id%winnumber%
return
|
|
|