Roll the mouse wheel?
Moderators: JRL, Dorian (MJT support)
Roll the mouse wheel?
Is there any way to script the rolling of the mouse wheel forward or backward? I work with an application that changes the font size in a viewing window only if the Ctrl key is depressed and the mouse wheel is rolled forward. There are no other controls that affect the font size. Is there any chance of using Macro Scheduler to mimic the rolling of the mouse wheel a number of clicks? Thanks.
Wells H. Anderson
Active Practice LLC
Active Practice LLC
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Like this:
/*
120 is one mouse wheel increment. Positive increments of 120 is up,
Negative increments of 120 is down.
This example wheels the mouse down three increments in FireFox
*/
SetFocus>firefox*
Let>MOUSEEVENTF_WHEEL=2048
LibFunc>user32,mouse_event,r,MOUSEEVENTF_WHEEL,0,0,-260,0
/*
120 is one mouse wheel increment. Positive increments of 120 is up,
Negative increments of 120 is down.
This example wheels the mouse down three increments in FireFox
*/
SetFocus>firefox*
Let>MOUSEEVENTF_WHEEL=2048
LibFunc>user32,mouse_event,r,MOUSEEVENTF_WHEEL,0,0,-260,0
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Yes, well spotted. It would still have moved it - but probably only 2 jumps.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?