NJK
NJK

Reputation: 53

Why doesn't my AutoIt script process its command line argument?

I want to send a variable to the edit control of a GUI using AutoIt. How can I run my AutoIt script from command line or using shellexecute so it correctly processes its command line parameters?

I am using the below syntax in my AutoIt script:

Send("2{TAB}$CmdLine[1]")

And the below command to run the compiled AU3 script:

tstScript.exe 888

Upvotes: 2

Views: 7130

Answers (1)

Aerus
Aerus

Reputation: 4380

It should work if you concatenate the commandline parameter with the send String as follows:

Send("2{TAB}" & $CmdLine[1])

Upvotes: 5

Related Questions