Wrote a simple script to send Alt+Tab via F12:
Code: Select all
F12::
Send !{Tab}
Return
Code: Select all
F12::
Send !{Tab}
Sleep 50
Send !{Tab}
Return
Code: Select all
F12::
Send !{Tab}
Return
Code: Select all
F12::
Send !{Tab}
Sleep 50
Send !{Tab}
Return
Code: Select all
*Numpad1::
run C:\Users\Default\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Window Switcher.lnk
sleep,100
send,{enter}
Return
Code: Select all
F12:: AltTab()
AltTab(){
list := ""
WinGet, id, list
Loop, %id%
{
this_ID := id%A_Index%
IfWinActive, ahk_id %this_ID%
continue
WinGetTitle, title, ahk_id %this_ID%
If (title = "")
continue
If (!IsWindow(WinExist("ahk_id" . this_ID)))
continue
WinActivate, ahk_id %this_ID%, ,2
break
}
}
; This checks if a window is, in fact a window:
IsWindow(hwnd){
WinGet, s, Style, ahk_id %hwnd%
return s & 0xC00000 ? (s & 0x100 ? 0 : 1) : 0
}
Users browsing this forum: OrangeCat and 300 guests