I would like to use SetTitleMatchMode, RegEx only on selected hotkeys of a script. Is this possible, if yes, how?
In the following example, I would like that SetTitleMatchMode, RegEx applies only to the first hotkey (now it applies to all hotkeys).
I might have somthing in mind to switch off SetTitleMatchMode, RegEx after the first hotkey?
Code: Select all
SetTitleMatchMode, RegEx
#IfWinActive, ahk_exe notepad.*.exe
^n::
Send, test
Return
^!a::
IfWinExist folder
Run, C:\drive\folder
Return
^!b::
IfWinExist folder_b
Run, C:\drive\folder_b
Return