Sign in to follow this  
Followers 0
socap

Unpress everything after blockinput

5 posts in this topic

If something, especially mouse button is pressed when blockinput starts - doesn't work right.

How to unpress everything after blockinput line, please?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I don't know if there is a way to unpress everything, unless you write such a function yourself. However such a function is not really needed since you can unpress anything you press. The best thing is to keep a track of which keys, or mouse buttons, are being held down and release them individually using Send and MouseUp etc...

Edited by czardas

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Is the mouse part correct?

No.

MouseDown is a command that sends "tell the computer I'm pushing down on the left mouse button". What you need to do is to read the status of the mouse button. Take a look at You need to use something like

...
if _WinAPI_GetAsyncKeyState($VK_LBUTTON) <> 0 then
...

when you test for the mouse.

Edited by JohnQSmith

Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

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