2013-06-19, 15:58
(2013-06-19, 15:55)lokipoki Wrote:Oupsss... try this instead :(2013-06-19, 15:20)Angelscry Wrote:(2013-06-19, 14:58)lokipoki Wrote: What I'm trying to achieve is that: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.
- 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.
Yeah I changed it to $CmdLine[1] and %romname%. But now windows indicates that it couldn't find the .ink
Code:
Run(@ComSpec & ' /c "D:\HTPC\Games\PC\' & $CmdLine[1] & '.lnk"', @DesktopCommonDir, @SW_HIDE)