Code: Select all
!4::
#IfWinActive, ahk_exe notepad.exe
MsgBox, Notepad is active
return
#IfWinActive
#IfWinActive, ahk_exe calculator.exe
MsgBox, Calculator is active
return
#IfWinActive
return
[Mod edit: Added [code][/code] tags]
Code: Select all
!4::
#IfWinActive, ahk_exe notepad.exe
MsgBox, Notepad is active
return
#IfWinActive
#IfWinActive, ahk_exe calculator.exe
MsgBox, Calculator is active
return
#IfWinActive
return
Code: Select all
#IfWinActive, ahk_exe notepad.exe
!4::
MsgBox, Notepad is active
return
#IfWinActive, ahk_exe calculator.exe
!4::
MsgBox, Calculator is active
return
Code: Select all
#IfWinActive, ahk_exe notepad.exe
!4::MsgBox, Notepad is active
#IfWinActive, ahk_exe calculator.exe
!4::MsgBox, Calculator is active