fishbones Posted March 11, 2009 Share Posted March 11, 2009 Hello, I'm very new to AutoIT, and I'm having trouble making a really simple script for a friend of mine. His problem: When he clicks his mousewheel, it clicks two times instead of one. Yepp, that's all - and I couldn't figure out anything in AutoIT, I was thinking about making some sort of cooldown, so the other click wouldn't activate. Any help? Btw, I don't even know if I'm posting on the correct board, sorry. Link to comment Share on other sites More sharing options...
Zedna Posted March 13, 2009 Share Posted March 13, 2009 #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 If _IsPressed("04", $dll) Then ; Middle mouse button (three-button mouse) MouseClick ("middle") EndIf Sleep(100) WEnd DllClose($dll) Resources UDF ResourcesEx UDF AutoIt Forum Search 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