Sign in to follow this  
Followers 0
1224

BlockInput() did not work

16 posts in this topic

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

Share this post


Link to post
Share on other sites



anyone knows how to fix it?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

What system, btw?


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

during the 60seconds,

I can still move the mouse or click the mouse, and also can type the word

why?

I want to block them

Share this post


Link to post
Share on other sites

Because you are Superman?

What system (windows)?


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Because you are Superman?

What system (windows)?

Windows Vista 32 bits

and I have mentioned in 1st post

before can work

but when I reinstall windows, BlockInput cannot work

Share this post


Link to post
Share on other sites

MSDN says "Vista requires elevation for this function to work"

Put #RequireAdmin at the top of your script.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

I'm interested to know if my suggestion helped.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

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

Edited by Inverted

Share this post


Link to post
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

Share this post


Link to post
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 !

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