manit Posted September 29, 2011 Share Posted September 29, 2011 I want to disable double click from my mouse . That means If I click once then again immediately . I want the OS to disregard mouse clicks for 0.5 second after a click. How can I do that ? Link to comment Share on other sites More sharing options...
Ramzes Posted September 29, 2011 Share Posted September 29, 2011 Try this: #include <Misc.au3> While 1 While Not _IsPressed(1) Sleep(10) WEnd While _IsPressed(1) Sleep(10) WEnd BlockInput(1) Sleep(100) BlockInput(0) WEnd BlockInput disable mouse and keyboard. Sorry for my bad English but nobody is perfect. [font=arial, helvetica, sans-serif]Ramzes[/font] Link to comment Share on other sites More sharing options...
manit Posted October 3, 2011 Author Share Posted October 3, 2011 hi Ramzes I understand from your script that (1)sleep for 10ms whether left mouse button is pressed or not(2)then block keyboard & mouse for 100ms(3)now free mouse & keyboard Link to comment Share on other sites More sharing options...
mylearings Posted July 15, 2023 Share Posted July 15, 2023 On 9/29/2011 at 12:00 PM, Ramzes said: this is not working on new laptops #include <Misc.au3> While 1 While Not _IsPressed(1) Sleep(10) WEnd While _IsPressed(1) Sleep(10) WEnd BlockInput(1) Sleep(100) BlockInput(0) WEnd BlockInput disable mouse and keyboard. Link to comment Share on other sites More sharing options...
Somerset Posted July 15, 2023 Share Posted July 15, 2023 You're replying to a thread that hasn't been posted in 11 years. 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