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