Newby Posted September 19, 2004 Posted September 19, 2004 So I have 2 questions: 1.I wrote this script : $var = IniRead("Botsets.ini", "Pfad", "WBC_Pfad", "C:\Programme\Enlight\Infinite Interactive\Warlords Battlecry III\battlecry3.exe") ;but I don't know how to start this ^^ Prog. now SoundSetWaveVolume(100) SoundPlay( "Headshot.wav" ,1) 2.how can I create a Logfile????
emmanuel Posted September 20, 2004 Posted September 20, 2004 So I have 2 questions: 1.I wrote this script : $var = IniRead("Botsets.ini", "Pfad", "WBC_Pfad", "C:\Programme\Enlight\Infinite Interactive\Warlords Battlecry III\battlecry3.exe") ;but I don't know how to start this ^^ Prog. now SoundSetWaveVolume(100) SoundPlay( "Headshot.wav" ,1) 2.how can I create a Logfile???? <{POST_SNAPBACK}>1: run 2: filewriteline "I'm not even supposed to be here today!" -Dante (Hicks)
Newby Posted September 20, 2004 Author Posted September 20, 2004 (edited) But if I make Run($var) This Error comes: AutoIt Error Line 38 run($var) Error:Unable to execute the external Programm Edited September 20, 2004 by Newby
ZeDMIN Posted September 20, 2004 Posted September 20, 2004 try putting a msgbox before or instead of the run command to see if $var contains correct path/filename MsgBox(0, '', $var) Greetings, ZeD
emmanuel Posted September 20, 2004 Posted September 20, 2004 (edited) But if I make Run($var) This Error comes: AutoIt Error Line 38 run($var) Error:Unable to execute the external Programm <{POST_SNAPBACK}>try this: Run('"' & $var & '"') that'll put quotes around the run line, which helps when there's spaces or symbols like & in the path.... Edited September 20, 2004 by emmanuel "I'm not even supposed to be here today!" -Dante (Hicks)
ezzetabi Posted September 20, 2004 Posted September 20, 2004 (edited) Try If FileExists($var) Then Run($Var) Else MsgBox(16,'Error...','Check your .ini file' & @lf & @lf & $var & ' doesn't seems to exist.') EndIf Edited September 20, 2004 by ezzetabi
emmanuel Posted September 20, 2004 Posted September 20, 2004 Try If FileExists($var) Then Run($Var) Else MsgBox(16,'Error...','Check your .ini file' & @lf & @lf & $var & ' doesn't seems to exist.') EndIf <{POST_SNAPBACK}>Good idea, though Run seems to be unique within autoit as sometimes having issues with spaces, so even if the fileexists, you still might want to have the quotes coconated around the $var... "I'm not even supposed to be here today!" -Dante (Hicks)
emmanuel Posted September 22, 2004 Posted September 22, 2004 but isn't there any other way???? <{POST_SNAPBACK}>There's just one critical error with that comment, the complete lack of context. Any other way for what? "I'm not even supposed to be here today!" -Dante (Hicks)
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