illya Posted December 11, 2008 Share Posted December 11, 2008 Hi, im pretty sure this answer is really simple, but after searching in both the forums and the Online Documentation I couldnt find anything. I want autoit to listen for certain mousebuttons and act when they are pressed. The buttons conserned are the two buttons on the left on the mouse(found on most modern mouses). I couldnt find a function for it, but surely there is one right? I basicly want to do: if mousebuttonpressed("button4") then: bla bla bla else: nothing. Link to comment Share on other sites More sharing options...
illya Posted December 11, 2008 Author Share Posted December 11, 2008 (edited) Ok so far Ive found _IsPressed and that 01 is the elft button and 02 the right and 04 the middle.... now I just need to find what button is the ones on the sideEDIT1:the code in case someone care:#include <Misc.au3>$dll = DllOpen("user32.dll")While 1 If _IsPressed("04", $dll) Then MsgBox(0,"_IsPressed", "End Key Pressed") ExitLoop EndIfWEndDllClose($dll)EDIT2:Ok so I abandoned that and found another way:http://www.autoitscript.com/forum/index.ph...+x+mouse+buttonI actually wanted to have one of the sidebuttons press backspace and the other one to press space, but with this one I can only choose one. Well atleast thats better than nothing, but if anyone finds a way to have them use different buttons then I would love to hear how Edited December 11, 2008 by illya 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