Sign in to follow this  
Followers 0
mpahuja

Using AutoIt scripts from command line with user arguments

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

Search in the help file for $CmdLine

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