Is that possible to...

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
antarek
Newbie
Posts: 2
Joined: Thu Nov 30, 2006 8:46 pm

Is that possible to...

Post by antarek » Thu Nov 30, 2006 8:50 pm

Set a macro to one of the 3 mouse buttons?

Thanks for answering ^^

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Nov 30, 2006 8:55 pm

If you mean you want a macro to fire when one of the three mouse buttons is pressed, then yes, you can achieve this with the OnEvent function. Create a looping macro which sets an OnEvent KEY_DOWN handler for the mouse button code and have it set to run on startup. See OnEvent in the help file. VK1 is left mouse button, VK2 = right mouse button, VK4 = middle button.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

antarek
Newbie
Posts: 2
Joined: Thu Nov 30, 2006 8:46 pm

Post by antarek » Thu Nov 30, 2006 9:28 pm

Nice. Thx :)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts