Jump to content
Sign in to follow this  

Using AutoIt scripts from command line with user arguments

Recommended Posts


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 ")


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.



Share this post

Link to post
Share on other sites


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

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.