2

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
user4157124
  • 2,809
  • 13
  • 27
  • 42
NJK
  • 53
  • 2
  • 8

1 Answers1

5

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

Send("2{TAB}" & $CmdLine[1])
Aerus
  • 4,332
  • 5
  • 43
  • 62