I would like to add a partial match for the window titles in #IfWinActive. For example, to match any notepad window, regardless of whether the heading is "Untitled - Notepad" or "MyFile - Notepad"
It should be very simple. My attemtps:
SetTitleMatchMode, Regex SetTitleMatchMode, Slow #IfWinActive *.Notepad +n::b #IfWinActive
matchmode 2's second attempt should match anywhere
SetTitleMatchMode, 2 #IfWinActive Notepad +n::b #IfWinActive
Testing using the full name Untitled - Notepad confirms that the code + n :: b substitutes Shift-n for Shift-b
NOTE. ahk_class is not an option because the class is different on each computer for the TeXnicCenter target program
Nino van hooff
source share