2013-07-04, 08:22
(2013-07-04, 04:24)Angelscry Wrote:(2013-07-03, 23:25)lokipoki Wrote:When Advanced Launcher .lnk support is activated, .lnk files are started by explorer.exe. So in your case, lnk file are effectively started (by explorer.exe) but test.exe is not started. When Advanced Launcher .lnk support is desactivated, .lnk files are started by the application defined into the launcher. So in your case, test.exe is started, but not the .lnk files (because your test.exe executable have nothing inside its code to manage and start .lnk files).(2013-07-03, 12:26)Angelscry Wrote: So your test.exe launcher is not working correctly. Please post your complete autoit script (test.au3) here. So we will be able to help you.
The code of my test.exe is just a test as the name implies:
Quote:MsgBox(4096, "Test", "This box will time out in 10 seconds", 10)
When .lnk are activated the test.exe wont work. But when I deactivate the .lnk that it works. What do I need to do to get both working? Eventually the test.exe will include a loading screen so that when a game loads I wont see windows... I hope you understand what I mean/
Cheers.
Remember that .lnk files ARE NOT executables. .lnk files are shortcuts managed by explorer.exe to redirect to another executable fand start it.
To make you test.exe file working it must manage .lnk files paths as argument and be able to start these lnk. files. According to this page, the way to start .lnk files using autoit is :
Code:Run(@ComSpec & " /c " & '"C:\Documents and Settings\All Users\Menu Démarrer\Programmes\Microsoft AntiSpyware\Uninstall Microsoft AntiSpyware.lnk"', "", @SW_HIDE)
So to work with Advanced Launcher, your script must be something like this :
Code:Run(@ComSpec & " /c " & '"' & $CmdLine[1] & '"', "", @SW_HIDE)
And your launcher configuration must be like this :
Application : D:\HTPC\Games\PC\Test.exe
Arguments : "%rom%"
File Extension : lnk
.lnk support : OFF
Ok. I tried exactly that. But when select a game nothing happens