2013-02-23, 15:47
(2013-02-23, 11:10)bobby8921 Wrote: Well, in my case it's going worse.Try to not use paths containing special characters (like accentued characters). Advanced Launcher have some difficulties to manage them.
I did a full uninstall of XBMC et reinstall it.
I have Avanced Launcher 1.12.2 and when I launch it, I have an error: Script Echec: Addon.py
Here is my log file: http://www.xbmclogs.com/show.php?id=1128
(2013-02-23, 15:46)lokipoki Wrote: Hi there.I actually quickly see 2 possible errors.
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.
- First, try to pass arguments like this "%rom%" "%romname%" instead of this %rom% %romname%. Both arguments will surely contain space into their paths or their name. If you want them to be detected has only 2 arguments, you need to use double quotes.
- If you pass 2 arguments so the if statement determining the number of argument must be If $CmdLine[0] == 2 Then and not If $CmdLine[0] == 1 Then.