Hello,
please help me create a script that when run will change the currently displayed program windows (ALT+TAB) every 1 minute.
It would be perfect to be able to choose which .exe to switch between
Script that will ALT TAB between 2 programs every 30 sec Topic is solved
-
- Posts: 7
- Joined: 30 Nov 2021, 09:47
Re: Script that will ALT TAB between 2 programs every 30 sec Topic is solved
Code: Select all
#Persistent
SetTimer, Change, 60000
Return
Change:
win := []
WinGet, wins, List
Loop, %wins% {
WinGetTitle, ttitle, % winTitle := "ahk_id " wins%A_Index%
WinGet, proc, ProcessName, %winTitle%
SplitPath, proc,,,, proc
WinGetClass, class, %winTitle%
If class not contains ToolBar,#32770
If (ttitle > "" && (ttitle != "Program Manager" || proc != "Explorer"))
win.Push(wins%A_Index%)
} Until win.Count() = 2
WinActivate, % "ahk_id " win.2
Return
-
- Posts: 7
- Joined: 30 Nov 2021, 09:47
Re: Script that will ALT TAB between 2 programs every 30 sec
thank you very much !mikeyww wrote: ↑30 Nov 2021, 11:25Code: Select all
#Persistent SetTimer, Change, 60000 Return Change: win := [] WinGet, wins, List Loop, %wins% { WinGetTitle, ttitle, % winTitle := "ahk_id " wins%A_Index% WinGet, proc, ProcessName, %winTitle% SplitPath, proc,,,, proc WinGetClass, class, %winTitle% If class not contains ToolBar,#32770 If (ttitle > "" && (ttitle != "Program Manager" || proc != "Explorer")) win.Push(wins%A_Index%) } Until win.Count() = 2 WinActivate, % "ahk_id " win.2 Return
it work's, however can you help me in edit it to get possibility of switching betwen more than 2 windows?
And how can i choose wich windows will be switching ?
Who is online
Users browsing this forum: Google [Bot] and 302 guests