petfish Posted October 21, 2007 Share Posted October 21, 2007 Hi im making a gui for a gaming lounge, everything works fine but this game.. doom 3 I want to do this run("C:\Program Files\Doom 3\doom3.exe")oÝ÷ ÙÊ&¦)^v+ZÚeiÇا¶¢·v*ÞrÚ+Ê'h¹¹^rXçbµ©ÝÚÚø§y»Â§¶§¶¬~º&(.'±iËeÊØ^±©zºè«yú+{}÷ÜÎ51LÏ,AAHAÄ,ý÷ßx^ë-ç(u殶sfbb33c¶vÖRÒgV÷C´FööÓ2gV÷C²FVà¢6÷VæEÆgV÷Cµ$TÔäDU"åtbgV÷C²¢bfÆTW7G2gV÷C´3¢b3#µ&öw&ÒfÆW2b3#´FööÒ2b3#¶FööÓ4uTURæWRgV÷C²FVà¢'VâgV÷C´3¢b3#µ&öw&ÒfÆW2b3#´FööÒ2b3#´FööÓ4uTURæWRgV÷C²¤VæD`oÝ÷ Ø:(q EÄ{¢{Z{-+%w¨ºÚ"µÍ[ ][ÝÐÎÌLÔÙÜ[H[ÉÌLÑÛÛHÉÌLÑÛÛLÑÕRQVK^I][ÝÊ Link to comment Share on other sites More sharing options...
Generator Posted October 21, 2007 Share Posted October 21, 2007 (edited) Tried ShellExecute() ? Edited October 21, 2007 by Generator Link to comment Share on other sites More sharing options...
petfish Posted October 21, 2007 Author Share Posted October 21, 2007 Tried ShellExecute() ? Yup same thing happens unless im not using it right ShellExecute("C:\Program Files\Doom 3\doom3.exe") i just treated it like the run function Link to comment Share on other sites More sharing options...
Generator Posted October 21, 2007 Share Posted October 21, 2007 Doom3GUIEXE.exe contains this line onlyCODE: AutoItrun("C:\Program Files\Doom 3\Doom3GUIEXE.exe")Why is it running itself? Link to comment Share on other sites More sharing options...
petfish Posted October 21, 2007 Author Share Posted October 21, 2007 Why is it running itself? sorry, having too much fun copying and pasting it actually says this run("C:\Program Files\Doom 3\Doom3.exe") Link to comment Share on other sites More sharing options...
weaponx Posted October 21, 2007 Share Posted October 21, 2007 Did you try adding a working directory parameter to your Run() run("Doom3.exe", "C:\Program Files\Doom 3\") Link to comment Share on other sites More sharing options...
petfish Posted October 21, 2007 Author Share Posted October 21, 2007 Did you try adding a working directory parameter to your Run()run("Doom3.exe", "C:\Program Files\Doom 3\")just tried it now i got this error"run("Doom3.exe", "C:\Program Files\Doom 3\") The system cannot find the file specified."it definitly exists there Link to comment Share on other sites More sharing options...
petfish Posted October 21, 2007 Author Share Posted October 21, 2007 I figured it out ShellExecute("Doom3.exe", "", "c:\program files\doom 3\") i tried this earlier but i missed the middle bit -- ,"", so it took my working directory as a parameter...der!! Sorry to wast your time but thanks all for your help Link to comment Share on other sites More sharing options...
Valuater Posted October 21, 2007 Share Posted October 21, 2007 Maybe... If $game = ("Doom3") Then SoundPlay("REMINDER.WAV") If FileExists("C:\Program Files\Doom 3\doom3GUIEXE.exe") Then Run(FileGetShortName("C:\Program Files\Doom 3\doom3GUIEXE.exe"), @WorkingDir) EndIf EndIf 8) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now