AutoitMike Posted October 27, 2014 Posted October 27, 2014 (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 October 27, 2014 by AutoitMike
JohnOne Posted October 27, 2014 Posted October 27, 2014 Do not use BlockInput for that part, you must click it. Or disable UAC. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now