My script looks something like this. but it doesn't work, I think -SetTitleMatchMode has no effect.
Code: Select all
SetTitleMatchMode, 1
#if WinActive("ahk_class Notepad")
^+l::MsgBox, notepad
Return
#if
SetTitleMatchMode, 2
#If WinActive(" - AutoHotkey Community -")
^+l::MsgBox, chrome or firefox
Return
#If
What am I doing wrong
Thanks