Jump to content
Sign in to follow this  
foolove

having to click ok when running applications as admin

Recommended Posts

foolove

I want to bypass or autoclick on the autoit ok button for when running programs as admin

Hoping someone can shed some light on this thanks

Share this post


Link to post
Share on other sites
Ramzes

Hi foolove,

where is your code? Please read some tutorials and search for examples.

I think you should look for MouseClick and #RequireAdmin.


Sorry for my bad English but nobody is perfect. [font=arial, helvetica, sans-serif]Ramzes[/font]

Share this post


Link to post
Share on other sites
KaFu

Afaik it is not possible to automate the UAC screen as it is displayed on a separate desktop (look at msdn for "createdesktop" and see the underlying documents for the concept). Running in Admin context is most of the time not really necessary, so better check if you could re-write you script.

The only work-around I know of is creating a task to run the program with Admin rights in the task-scheduler and then run that task, which is possible without Admin rights. For security reasons obviously the UAC Admin check is performed once while creating the task ;)...

If you learn of any other method, let me know... and of course tell MS about this possible breach of their security concept :graduated:...

Edited by KaFu

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×