psc Posted February 17, 2006 Share Posted February 17, 2006 Is it possible to give commandline options when starting an *.au3 file from iside Scite by F5? If yes, how? psc This text contains 100% recyclable bits and bytes only! Link to comment Share on other sites More sharing options...
MHz Posted February 17, 2006 Share Posted February 17, 2006 Shift+F8 Link to comment Share on other sites More sharing options...
psc Posted February 17, 2006 Author Share Posted February 17, 2006 Many thanks, works perfect! But in my special case I have up to 6 parameters If $CmdLine[0]== 0 Then $Msg0 = "Syntax:" & @LF & @LF $Msg1 = "pscBuildPCInfo -f [<Map File>] [-p [<Password>]] [-s] [-m]" & @LF & @LF $Msg2 = "-s : Process Serial Numbers" & @LF $Msg3 = "-m : Process Mount Information" & @LF $Msg4 = "Default Map File : '" & $PscMapFile & "'" & @LF $Msg5 = "Default Password : '" & $PWD & "'" & @LF MsgBox(16, "pscBuildPCInfo", $Msg0 & $Msg1 & $Msg2 & $Msg3 & $Msg4 & $Msg5) EndIf ???? psc This text contains 100% recyclable bits and bytes only! Link to comment Share on other sites More sharing options...
BigDaddyO Posted February 17, 2006 Share Posted February 17, 2006 (edited) I never knew about that Shift + F8... I just wrote a second script that launches the main script with the proper command line switches. I can't find it right now but you have to call AutoIT with a switch to the script then add your switches to that... If I find it I'll update this post. Found it. Run('"' & @AUTOITEXE & '"' & ' "Your Scripts Full Path.au3" /Switch1 /Switch2 /Switch3 /Switch4 /Etc') Mike Edited February 17, 2006 by MikeOsdx Link to comment Share on other sites More sharing options...
psc Posted February 17, 2006 Author Share Posted February 17, 2006 attached input with more than one parameter on the line workd well. psc This text contains 100% recyclable bits and bytes only! 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