socap Posted January 17, 2012 Share Posted January 17, 2012 If something, especially mouse button is pressed when blockinput starts - doesn't work right. How to unpress everything after blockinput line, please? Link to comment Share on other sites More sharing options...
czardas Posted January 17, 2012 Share Posted January 17, 2012 (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 January 17, 2012 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
socap Posted January 17, 2012 Author Share Posted January 17, 2012 (edited) I get that it should be something like this If MouseDown("left") Then MouseUp ("left") If MouseDown("right") Then MouseUp ("right") If MouseDown("Middle") Then MouseUp("Middle") If CTRLDOWN Then CTRLUP If ALTDOWN Then ALTUP If SHIFTDOWN Then SHIFTUP Is the mouse part correct? Edited January 17, 2012 by socap Link to comment Share on other sites More sharing options...
socap Posted January 17, 2012 Author Share Posted January 17, 2012 bump Link to comment Share on other sites More sharing options...
JohnQSmith Posted January 17, 2012 Share Posted January 17, 2012 (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 January 17, 2012 by JohnQSmith Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes". Link to comment Share on other sites More sharing options...
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