stiwwy Posted October 29, 2006 Share Posted October 29, 2006 I am new to AutoIt so please forgive my ignorance. I have made a simple script that will locate for a control and then set a value on that control. For the sake of discussion, let's call this script as "SetControl.exe" This script will require the following variables to be supplied by the user: $ControlName, $ControlValue. How can I pass these variable inputs from command line? Something like "SetControl.exe Name Johnny" What do I need to add on my setcontrol.exe script to accept "name" as the control name and "johnny" as the value to set on the "name" control. thanks! Link to comment Share on other sites More sharing options...
cppman Posted October 29, 2006 Share Posted October 29, 2006 use $CmdLine $ControlName = $CmdLine[1] $ControlValue = $CmdLine[2] ;It must pass both parameters. MessageBox(0, $ControlName, $ControlValue) Miva OS Project Link to comment Share on other sites More sharing options...
Richard Robertson Posted October 29, 2006 Share Posted October 29, 2006 Read the help file and search for $cmdline. 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