Echo post for command line using AutoIT?

How do I echo the contents of a variable on the command line using AutoIT? All I want to do is show a message on the command line.

Run("C:\WINDOWS\system32\cmd.exe")
WinWaitActive("C:\WINDOWS\system32\cmd.exe")
$message = 'Type: "edit file_name.ext" to create or edit a file'
send("$message {ENTER}")

      

+3


source to share


1 answer


You need to put a variable before the quote, then it will be evaluated:



send($message & "{ENTER}")

      

+1


source







All Articles