I am Very new to Autoit and I'm trying to figure out how to input text in an administrator Level Command prompt on windows 10. this is what I currently have
Send ("#r")
WinWaitActive("Run")
Send("runas /user:Administrator cmd")
Send("{Enter}")
WinWait("C:\WINDOWS\system32\runas.exe")
ControlClick("", "", "[CLASS:ConsoleWindowClass]")
Send("test-Password")
Send("{Enter}")
The issue I am having is I can not send the "test-password" to the command prompt. I cried adding the ControlClick command to place the cursor in he CMD box, but its still not working. What am I doing wrong?