2013-02-23, 15:46
Hi there.
My arguments: %rom% %romname%
My code:
Funny thing is I get Autoit Error:
Line 656
Error:Error parsing function call.
There is no line 656. I tried everything but get my script to work.
Help would be much appreciated. Thanks in advance.
My arguments: %rom% %romname%
My code:
Code:
#Include <GUIConstantsEx.au3>
#Include <WindowsConstants.au3>
HotKeySet("{ESC}", "Terminate")
If $CmdLine[0] == 1 Then
Run("D:\HTPC\Programs\nomousy\nomousy.exe /hide", "", @SW_HIDE)
Run("D:\HTPC\Programs\autotaskbarhider\TaskBarHider.exe -hide", "", @SW_HIDE)
GUICreate('MyGUI', @DesktopWidth, @DesktopHeight, 0, 0, BitOR($WS_POPUP, $WS_EX_TOPMOST))
GUICtrlCreatePic('D:\HTPC\Games\PS2\play-station-2-logo.jpg', 0, 0, @DesktopWidth, @DesktopHeight)
GUISetState()
Run("pssuspend XBMC.exe", "", @SW_HIDE)
Run ( '"D:\HTPC\Games\PS2\Emulator\pcsx2-5569-windows-x86\pcsx2-r5569.exe" --nogui --fullscreen "' & $CmdLine[1] & '" --cfgpath="D:\HTPC\Games\PS2\Inis\' & $CmdLine[2] & '"', "D:\HTPC\Games\PS2\Emulator\pcsx2-5569-windows-x86\" )
While 2
Sleep(100)
WEnd
EndIf
Terminate
Func Terminate()
GUISetState()
Run("pssuspend -r XBMC.exe")
WinWaitActive ("XBMC")
ProcessClose ( "pcsx2-r5569.exe" )
Run("nomousy.exe", "", @SW_HIDE)
Run("TaskBarHider.exe -show -exit", "", @SW_HIDE)
Exit 0
EndFunc
Funny thing is I get Autoit Error:
Line 656
Error:Error parsing function call.
There is no line 656. I tried everything but get my script to work.
Help would be much appreciated. Thanks in advance.