CodeKiller wrote:
Sorry, I didn't understand it's what you are looking to do... :-p
For the admin rights, why don't you just use the "right click run as adminsitrator" ???
heh
Yeah, right click does the trick of course, but I wanted to be more user friendly by letting the application run normally, and only when admin rights are needed (when the user selects an option) then the UAC dialog pops in.
Without this, the only way I have now, is to intercept the fact that the operation failed (no admin rights) and pop my own dialog, telling the user "Please run as administrator" - which is quite lame...
Also - I was speaking more in general terms - AutoHotkey does not provide any way for me to deal with UAC - I was hoping that some actions may be told to go through the "elevation request" process.
_________________
Sector-Seven - Freeware tools built with AutoHotkey