So, I am making little program to login in program. Everytime when I want to start program, UAC pop up for login. I have the username and password. So I want to make program that automatically type username and password and press enter.
I made the program with Vbscript. But it's not Working. Here is the code for Vbscript:
Set cam = WScript.CreateObject( "WScript.Shell" )
cam.Run("""path\.exe""")
wscript.sleep 3000
cam.sendkeys "username"
cam.sendkeys "{TAB}"
cam.sendkeys "password"
cam.sendkeys "{TAB}"
wscript.sleep 100
cam.sendkeys "{TAB}"
cam.sendkeys "{ENTER}"
Program start, but won't type anything. When I try to open like notepad
cam.Run("""C:\WINDOWS\system32\notepad.exe""")
Notepad open, and program automatically type username, and password. Problem is, Why UAC doesn't let my program to type in to him? And how to fix that.
Sorry for my bad english, I tried to explain as best I could. Thank you