2012-12-12, 04:49
(2012-12-12, 04:33)kamikaze7100 Wrote:Hummm... ok. So... another suggestion. Try to remove the double quotes around the $CmdLine[1] into the script. Also the running PCSX2 executable will be pcsx2-r5435.exe. So this is the process that must be closed by the Terminate function. Try this script :(2012-12-09, 08:26)Angelscry Wrote:(2012-12-09, 07:33)kamikaze7100 Wrote: <launcher>Ok... The application parameter of the launcher must point to your compiled Autoit script and not to the PCSX2 application itself.
<id>733161b6ea2dc5ebc38e09f0e9000234</id>
<name>PlayStation 2</name>
<application>F:\Emulators\Emulators\Sony\PCSX2\pcsx2-5437-windows-x86\pcsx2-r5435.exe</application>
<args>"%rom%"</args>
<rompath>F:\Emulators\Roms\Sony\PlayStation 2\</rompath>
<thumbpath>F:\Emulators\Roms\Sony\PlayStation 2\Thumbs\</thumbpath>
<fanartpath>F:\Emulators\Roms\Sony\PlayStation 2\Fanart\</fanartpath>
<custompath>F:\Emulators\Roms\Sony\PlayStation 2\Fanart\</custompath>
<romext>iso</romext>
<platform>Playstation 2</platform>
<thumb></thumb>
<fanart></fanart>
<genre></genre>
<release></release>
<publisher></publisher>
<launcherplot></launcherplot>
<minimize>false</minimize>
<lnk>false</lnk>
<roms>
thats the setup
Well I had the launcher file set i just forgot to change it when I copied the settings and after u mentioned that it was a AutoIt script I compiled it with AutoIt. But I'm still getting the same result, still the same massage after I replaced the Autohotkey with the AutoIt exe file.
It looks like Pcsx2 is unable to find the ISO file but its starting all games if I select just the pcsx2.exe without any problems (except closing on ESC).
Code:
HotKeySet("{ESC}", "Terminate")
If $CmdLine[0] == 1 Then
Run ( '"F:\Emulators\Emulators\Sony\PCSX2\pcsx2-5437-windows-x86\pcsx2-r5435.exe" --nogui --fullscreen ' & $CmdLine[1], "F:\Emulators\Emulators\Sony\PCSX2\pcsx2-5437-windows-x86" )
While 1
Sleep(100)
WEnd
EndIf
Func Terminate()
ProcessClose ( "pcsx2.exe" )
Exit 0
EndFunc