Jump to content
Sign in to follow this  

Testing command line parameteres within Scite

Recommended Posts



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?



Share this post

Link to post
Share on other sites

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
    Local $realCmdLine[3]
    $realCmdLine[0] = UBound($realCmdLine)-1
    $realCmdLine[1] = "param1"
    $realCmdLine[2] = "param 2"

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

Share this post

Link to post
Share on other sites



View: Parameters.


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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.