Jump to content

Using AutoIt scripts from command line with user arguments


mpahuja
 Share

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...