Jump to content

BlockInput() did not work


Recommended Posts

BlockInput(1)

Sleep(60000)
BlockInput(0)

Func Exitfunc ()
    Exit
EndFunc

before can work

but when I reinstall windows, BlockInput cannot work

I can type the word and use the mouse smoothly

Is there anything need to be installed or modify?

P.S. user32.dll is well, because _IsPressed function works fine

Link to comment
Share on other sites

anyone knows how to fix it?

Fix what? The code you posted only blocks inputs for 60 seconds. What does reinstalling Windows have to do with it?

:D

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

You did? Me blind :D ...

I said that I have mentioned

before can work

but when I reinstall windows, BlockInput cannot work

the key point is "before can work"

before<---------the window is the same, i.e. Vista 32 bits

Link to comment
Share on other sites

I'm interested to know if my suggestion helped.

thanks

It really can help

but do you know how can I change the system, so that I no need to add "#Requireadmin" but also can have the same effect

Link to comment
Share on other sites

What do you mean ? You can't do this without having the right permissions. Unless you/the user has UAC disabled. Or XP :D

Admin also need to confirm the permissions all the times= =

I have disabled the UAC, thanks for help

Link to comment
Share on other sites

Maybe you can delete that line and enable the option in AutoIt3Wrapper (Resource update : execution level : require administrator)

There is an option to make the compiled exe request privileges. I think it would ask only 1 time.

But to test this you'll need to compile your script with this option, re-enable UAC and reboot, lol. If you do this, post back results !

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...