Code: Select all
#If GetKeyState("LShift", "P")
<^Numpad5::
IfWinNotExist ahk_exe opera.exe
{
run % """C:\Users\prg13\AppData\Local\Programs\Opera\launcher.exe"""
WinWait, ahk_exe opera.exe, , 3
WinActivate ahk_exe opera.exe
}
else
WinActivate ahk_exe opera.exe
return
#If