Sign in to follow this  
Followers 0
psc

Start script from Scite with parameters

5 posts in this topic

Is it possible to give commandline options when starting an *.au3 file from iside Scite by F5?

If yes, how?

psc :o


This text contains 100% recyclable bits and bytes only!

Share this post


Link to post
Share on other sites



Many thanks, works perfect! :geek:

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 :o


This text contains 100% recyclable bits and bytes only!

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by MikeOsdx

Share this post


Link to post
Share on other sites

attached input with more than one parameter on the line workd well.

psc :o


This text contains 100% recyclable bits and bytes only!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0