how to active multiple ahk_class 32770 window one by one

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
ivill
Posts: 124
Joined: 13 May 2016, 02:23

how to active multiple ahk_class 32770 window one by one

28 Oct 2016, 13:39

here i want to active 2-3 window one by one (active window1 and do something, active window2 and do something), it only can be #winactivate by ahk_class 32770, the problem is, the windows got the same title and the sameahk_class 32770, do you got any idea?
User avatar
ivill
Posts: 124
Joined: 13 May 2016, 02:23

Re: how to active multiple ahk_class 32770 window one by one

28 Oct 2016, 13:49

i mean, how to active the next same ahk_class 32770 window? or how to temporary close/minimize the current ahk_class 32770, then i can active the next ahk_class 32770, and restore the last ahk_class 32770? possible?
User avatar
ivill
Posts: 124
Joined: 13 May 2016, 02:23

Re: how to active multiple ahk_class 32770 window one by one

28 Oct 2016, 13:51

the PID for the same ahk_class 32770 window in "Windows Task manager" is different
User avatar
Capn Odin
Posts: 1352
Joined: 23 Feb 2016, 19:45
Location: Denmark
Contact:

Re: how to active multiple ahk_class 32770 window one by one

28 Oct 2016, 13:56

Untested, but something like this might work for you.

Code: Select all

WinGet, Windows, List, ahk_class 32770
loop %Windows% {
	WinActivate, ahk_id Windows%A_Index%
	WinWaitActive, ahk_id Windows%A_Index%
	; Do Something
}
Please excuse my spelling I am dyslexic.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], peter_ahk and 362 guests