Hi,
I have a situation as follows, but not sure how to program it by Fastkeys. Please help. THank you.
(1) assign a shortcut key to open a program
(2) after the shortcut key is pressed,
*) if the program is running, and then it will become the active window
*) if the program is not running, then the program will be running first and then become the active window.
run a program - singleinstance only
This example runs or activates Firefox (Type; Command):
Code: Select all
IfWinExist, ahk_class MozillaWindowClass
WinActivate, ahk_class MozillaWindowClass
else
Run, firefox
return