The code I used to use is:
Code: Select all
Alt & F4:: {
If WinExist('ahk_exe ApplicationFrameHost.exe')
WinActivate
Else Run 'calc'
}
Code: Select all
Alt & F4:: {
If WinExist('calculator ahk_exe ApplicationFrameHost.exe')
WinActivate
Else Run 'calc'
}
A
Code: Select all
lt & F4:: {
If WinExist('ahk_exe calc.exe')
WinActivate
Else Run 'calc'
}
Is there something obvious that I am doing wrong?
Thanks in advance for any help.