Sign in to follow this  
Followers 0
RagsRevenge

Testing command line parameteres within Scite

4 posts in this topic

Hi,

I want to write some scripts with command line parameters.

I understand how it all works once I have an executable (or execute my script as a param to AutoIt3.exe)

My question is during development stage in Scite, how do I simulate passing parameters to the script?

One idea I have is to do save the au3 file, and then write another script with for example, something like

run(AutoIt3.exe myscript.au3 param1 "param 2")

command in it. Is this the best (only) way?

Thanks,

D

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

There is probably a better way than what I am suggestion, but I do something like this:

( Expected command line: param1 "param 2" )

; This is a fix for testing purposes
If @Compiled Then
    $realCmdLine = $CmdLine
Else
    Local $realCmdLine[3]
    $realCmdLine[0] = UBound($realCmdLine)-1
    $realCmdLine[1] = "param1"
    $realCmdLine[2] = "param 2"
EndIf

; Actual script below. Use $realCmdLine instead of $CmdLine
Edited by Manadar

Share this post


Link to post
Share on other sites

Shift-F8

or

View: Parameters.

Mat

Thank you both.

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