swagfag wrote: ↑
24 May 2020, 12:46
ur hotkeys could have just as easily broken down if u had a wintitle like this one:
Yes, I completely agree with you.
I have to use global option RegEx because sometimes I really need regexp but today there is no way to use it not globally.
And for me it it easier to specify RegEx globally once and change all my hotkeys to regular expressions.
It would be a good solution to have an ability to specify RegExp for a certain command and not globally (i.e. overwriting the SetTitleMachMode option).
Something like this:
Code: Select all
#IfWinActive, ahk_class r)^Edit[0-9]++$ ahk_exe explorer.exe
#IfWinActive, ahk_exe r)^dotNetFx[0-9]++_(Client|Full)_x86_x64\.exe$
It is just an example (I know it is much easier to SetTitleMatchMode to 1 to find Edit-s but I want to show you the idea when you have ability to specify different kinds of SetTitleMatchMode within one command and overwriting global option).
It this case r)
would mean a regular expression for a ahk_class-expression.
And another section ahk_exe
doesn't use RegExp for explorer.exe and inherit the SetTitleMatchMode set before (as well as all other commands in the script).
Focusing our efforts on non-productive and non-creative endeavours wastes lives as surely as war.
Jacque Fresco / The best that money can't buy