How to activate the desired window if both windows have the same ahk_class? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
reluct
Posts: 134
Joined: 28 Nov 2018, 05:07

How to activate the desired window if both windows have the same ahk_class?

23 Oct 2019, 01:37

I usually use the command #IfWinActive ahk_class.
I can’t use the Title Process ID PID since they change after the action in the windows.
reluct
Posts: 134
Joined: 28 Nov 2018, 05:07

Re: How to activate the desired window if both windows have the same ahk_class?

23 Oct 2019, 02:34

#IfWinActive [, WinText]
or

Code: Select all

#IfWinActive ahk_class QWidget, Browser
1::
Send 2
Return
not work
DRocks
Posts: 565
Joined: 08 May 2018, 10:20

Re: How to activate the desired window if both windows have the same ahk_class?  Topic is solved

23 Oct 2019, 06:34

Maybe consider RegEx SetTitleMatchMode and use a RegEx WinTitle plus the ahk_class ?
reluct
Posts: 134
Joined: 28 Nov 2018, 05:07

Re: How to activate the desired window if both windows have the same ahk_class?

23 Oct 2019, 13:01

DRocks wrote:
23 Oct 2019, 06:34
Maybe consider RegEx SetTitleMatchMode and use a RegEx WinTitle plus the ahk_class ?
thx :D

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 115 guests