tags:

views:

31

answers:

1

I'm running an application using an Authotkey script, which requires UAC. I've read some post about it, but I can't get a clear answer explaining why it seems not possible to accept the prompt using Autohotkey.

My code is something like this:

Run,"%A_ProgramFiles%\someprogram.exe",,Max

Send !Y ; Send Alt-Y

I understand the process dispatched by the first line is halt by UAC, but the autohotkey process should continue working, right? I tried inserting a pause before, and also with mouseclick, unsuccessful.

Thanks,

+2  A: 

No, the autohotkey process should not run in the secure desktop where the UAC prompt is displayed. See http://blogs.msdn.com/b/uac/archive/2006/05/03/589561.aspx and http://technet.microsoft.com/en-us/magazine/2009.07.uac.aspx for details.

Nicole Calinoiu