Sign in to follow this  
Followers 0
CaptainGadget

No Window Control in Vista with UAC enabled

7 posts in this topic

I have written a script that executes with no problems in Windows XP and Windows Vista (with UAC disabled) but the following commands will not function in Vista with UAC enabled:

WinSetState()

ControlSend()

Send ()

WinExists() is able to detect the window just fine but I can't seem to do anything with the window after that in Vista unless I have UAC disabled.

The program I am working with is GoToMyPC's installer running in "Autosetup" mode (Command line: "gosetup.exe -s -a -s"). If it helps, the software can be found at GoToMyPC Setup Download

I have scoured the web and this forum for anything I can find but have yet to come across even a kernel of relevance. Could it have something to do with the GoToMyPC software or is there something in AutoIT I'm missing?

Share this post


Link to post
Share on other sites



Have you tried adding #RequireAdmin to your script?

:P


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

Have you tried adding #RequireAdmin to your script?

Yes, #RequireAdmin, is one of the first lines in the script and I am always executing the script with full administrator privileges. Thanks, for the suggestion, though :P

Share this post


Link to post
Share on other sites

Is your script prompting for administrative privs? I know you said you had the #RequireAdmin bit in the code... But is it actually prompting?

Share this post


Link to post
Share on other sites

Is your script prompting for administrative privs? I know you said you had the #RequireAdmin bit in the code... But is it actually prompting?

Yes. Vista does prompt me for access upon program launch. The script (and compiled exe) execute and launch the "gosetup.exe" software without any problems. The script is even recognizing the windows generated by the "gosetup.exe" software it launches. It just doesn't seem able to "take control" or "send Information" to any of the windows from the "gosetup.exe" software when UAC is enabled. BTW, I've also tried this on multiple Windows Vista systems so I am certain the problem is not related to a specific machine.

Share this post


Link to post
Share on other sites

Were you ever able to resolve this issue?? I'm running into the exact same thing on Win10...

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Do you use Run or Shellexecute together with #Require Admin? Yes, test without #Require Admin.

Edited by AutoBert

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  
Followers 0