2013-06-19, 15:20
(2013-06-19, 14:58)lokipoki Wrote:Your argument must not be %rom% but %romname%. As indicated into the user guide, %rom% is returning the complete path of the rom file (path+name+extension) while %romname% is just returning the name of the file without extension. Also your script use the parameter $CmdLine[2], so this mean that your autoscript is waiting at least 2 arguments. And as you write before it seems that you only paste one through Advanced Launcher.(2013-06-19, 14:27)Angelscry Wrote:(2013-06-19, 13:14)lokipoki Wrote: Hey.You forget to open/close some single quotes.
I'm trying to pass parameter to run a .lnk.
Here is my code:
Code:Run(@ComSpec & ' /c "D:\HTPC\Games\PC\& $CmdLine[2] &.lnk", @DesktopCommonDir, @SW_HIDE)
It wont compile. Whats wrong in my code?
Cheers.
Code:Run(@ComSpec & ' /c "D:\HTPC\Games\PC\& $CmdLine[2]' & '.lnk"', @DesktopCommonDir, @SW_HIDE)
BTW, do you know that Advanced Launcher natively support start of windows .lnk files? http://www.gwenael.org/xbmc/index.php?ti..._shortcuts and http://www.youtube.com/watch?v=JyfRa7gygEc
What I'm trying to achieve is that:
- my .lnk (the one I read into xbmc) point to launcher.exe (autoit)
- and the launcher.exe runs then the game .lnk (in a different folder)
- the launcher.exe itself shows a little loading screen with the cd (pc games) spinning and a fanart as background
But I got stuck. I'm using the code (improved) above in my launcher.exe but the game wouldn't start. It just switches to windows. My argument is %rom% and the application is explorer.exe in advanced launcher.
What am I doing wrong?
Cheers.