I'm currently the following code to launch the Program SpeedCrunch when pressing Win+C
#c::
IfWinExist, SpeedCrunch
{
WinActivate
}
IfWinNotExist, SpeedCrunch
{
Run, speedcrunch.exe, C:\Program Files (x86)\SpeedCrunch, UseErrorLevel
WinActivate
}
return
Activating the window when the program is running works perfectly. When the program is not running, however, the program is launched minimized, and not activated, meaning that it's necessary to press Win+C two times to launch and bring into focus Speedcrunch, even though I have "WinActivate" in the launch command. Why doesn't it work?