I have a program that activates the UAC (User Account Control) prompt every time I open the program. I can press the left arrow and then enter to continue on to that program (no mouse input).
After the script to open the program, I wrote
Send {left} {enter}
to simulate the keystrokes, but nothing happens. There is no error message. Are there certain situations that cannot be replicated with keystrokes or did I program this incorrectly?
Thanks for the help.
[Mod action: Moved topic to v1 section since this is v1 code. The main section is for v2.]
Simulate keystroke for prompts Topic is solved
Re: Simulate keystroke for prompts Topic is solved
Hello,
As far as I know, as a security feature, a script cannot interact directly with the UAC dialog.
This may help: https://www.autohotkey.com/docs/v1/FAQ.htm#uac.
As far as I know, as a security feature, a script cannot interact directly with the UAC dialog.
This may help: https://www.autohotkey.com/docs/v1/FAQ.htm#uac.
-
- Posts: 74
- Joined: 21 Mar 2023, 11:23
Re: Simulate keystroke for prompts
Thanks. That makes sense from a security point of view.