2012-08-01, 12:55
Which version of Project64 are you using? Because version 1.6.0 and 1.7.0 do not have the same command line structure : one need double quotes, the second one not.
Here is generaly how I use autoit script to close application using ESC key :
Here is generaly how I use autoit script to close application using ESC key :
Code:
HotKeySet("{ESC}", "Terminate")
If $CmdLine[0] == 1 Then
ProcessClose ( "XBMC.exe" )
Run ( '"C:\Program Files\Project64\Project64.exe" "' & $CmdLine[1] & '"', "C:\Program Files\Project64\" )
While 1
Sleep(100)
WEnd
EndIf
Func Terminate()
ProcessClose ( "Project64.exe" )
Run ( '"C:\Program Files (x86)\XBMC\XBMC.exe"' )
Exit 0
EndFunc