... Run, C:\Program Files (x86)\Kodi\Kodi.exe,,,OutputVarPID WinWait, ahk_pid %OutputVarPID% WinActivate, ahk_pid %OutputVarPID% Return