Mouse Scroll

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
radorjan
Newbie
Posts: 3
Joined: Fri Jan 16, 2009 6:34 am

Mouse Scroll

Post by radorjan » Thu Feb 05, 2009 10:58 pm

Hi,

I am trying to scroll down and tried

Let>MOUSEEVENTF_WHEEL=2048
LibFunc>user32,mouse_event,r,MOUSEEVENTF_WHEEL,0,0,-1500,0

it works the first time, but then seems to mess up the mouse - is there some sort of mouse reset?

Thanks

Aaron
Pro Scripter
Posts: 113
Joined: Mon Apr 09, 2007 1:35 am
Location: Wyoming

Post by Aaron » Thu Feb 05, 2009 11:49 pm

I have used:

Press Down*3
Depends upon how much you would like to scroll
Aaron

Aaron
Pro Scripter
Posts: 113
Joined: Mon Apr 09, 2007 1:35 am
Location: Wyoming

Post by Aaron » Fri Feb 06, 2009 2:55 am

LibFunc>user32,mouse_event,r,MOUSEEVENTF_WHEEL,0,0,-1500,0
Not sure how much you are trying to scroll but -1500 may be your problem. Did you mean -150?
Aaron

radorjan
Newbie
Posts: 3
Joined: Fri Jan 16, 2009 6:34 am

Post by radorjan » Fri Feb 06, 2009 3:33 am

I had tried smaller number before but it didn't scroll the length I needed
LibFunc>user32,mouse_event,r,MOUSEEVENTF_WHEEL,0,0,-300,0

I ended up just having to click inside a certain spot of the web browser to use the up and down arrows then having to locate the data spot again with the image recog clicking back in (this I had to due since it was a Java/Browser application I am trying to automate.

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