mpahuja Posted December 23, 2011 Share Posted December 23, 2011 Hi All, I have looking around to find a way to run autoit scripts to be able to run from command line with user defined arguments. So here is an example script that I am using: WinWaitActive("File Upload") Send(@WorkingDir & " \samplefile.txt ") Send("{ENTER}") When I run the compiled version of this script, it waits for a File Upload window to be active and then sends the "CurrentWorkingDirectory\samplefile.txt" as the path to upload the file and then clicks on Enter to close the dialog. I want to be able to use the compiled version of this script at command prompt manually and be able to send File location as an argument to the exe. I was just wondering if that is possible at all. I would really appreciate if someone can help on this. This is a great tool and I am just getting started with this and would be greatly beneficial if somebody can help. A related topic that I found: But this is not helping me as I want user defined argument. Thanks Manoj Link to comment Share on other sites More sharing options...
Blue_Drache Posted December 23, 2011 Share Posted December 23, 2011 http://www.autoitscript.com/autoit3/docs/intro/running.htm See the heading marked "Command Line Parameters" Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
ChrisN Posted December 23, 2011 Share Posted December 23, 2011 Search in the help file 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