Sign in to follow this  
Followers 0
AutoitMike

BlockInput on Win7

2 posts in this topic

#1 ·  Posted (edited)

I am attempting to use BlockInput so that the user cant disrupt mouse movent performed by AutoIt.

This is my code: (for testing functionality)

#RequireAdmin
BlockInput(1)
WinWaitActive("User Account Control","Change when these")
ControlClick("[ACTIVE]", "Change when these", "[CLASSNN:Button2; TEXT:&Yes; INSTANCE:2]")   ;<-----Got this infor from AutoIt Info
MouseMove(100,200,10)
Sleep(4000)
BlockInput(0)

The problem is (On Win7) is that the "User Account Control" window pops up and the line "#RequireAdmin" does not finish until the "Yes" button (or "No" button) is clicked.

If I cant interact with the window, or disable it, then "BlockInput" is useless.

Does anyone know of a work around for this??

Thanks

Edited by AutoitMike

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