Markos Posted June 14, 2008 Share Posted June 14, 2008 I was looking for UDF that can click side buttons, but I couldn't find one, so I decided to write my own.It's a simple UDF that can send mouse clicks of middle button, X1 and X2 buttons.Format:#include <_mouseclick.au3> _MouseClick(Button[, State of button])Sample usage:#include <_mouseclick.au3> _MouseClick('x2') ;clicks X2 button _MouseClick('x1', 'down');clicks X1 button but does not release it _MouseClick('middle', 'up');releases middle buttonParametersButton - Button to click. (middle, x1, x2)State of button - (down, up, click). Default is 'click'Return ValuesOn Failure:- sets @ERROR = 1 if DllCall fails- sets @ERROR = 2 if wrong button specified- sets @ERROR = 3 if wrong keystate specified_MouseClick.au3 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