Clicking buttons in IE that needs scrolling down

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
geon12
Newbie
Posts: 8
Joined: Fri May 01, 2020 10:06 am

Clicking buttons in IE that needs scrolling down

Post by geon12 » Fri May 01, 2020 10:24 am

:oops: Hi.. Total noob here- bought Macro scheduler pro few days ago and getting used to it
My problem is that I have successfully located Multiple buttons that I need to press in a certain website
However most of the buttons are out of reach far down below on the screen- in a place that needs scrolling for it to show up

I tried image recognition to search for the images but since it's identical images I tried EXACT to locate multiple images- however for some unknown reason this turned up nothing: I have tweaked all the sensitivity variables and tested it on different screen: it just doesn't seem to work on this website

So now I resort to UIgetvalue to locate multiple items in attempt to click them sequentially- however most of the button's y value is way below my screen capacity: thus it just keep on moving and clicking on the taskbar below my screen...
I want to avoid having to press PgDn or End button to move, locate, press the button since it will offset the value I've collected with UIGetValue..

Plz help my brain is turning to mashed potatoz.....

TLDR: Need to press multiple identical Subscribe button on a website- most of the buttons are hidden in the lower part of the screen where scrolling down is needed.
Imagecapture failed


---------
SetFocus>Webinar - Internet Explorer


UIGetValue>{"Webinar - Internet Explorer"},{"Apply"},curVals,Positions,nHeight
Separate>Positions,|,parts

IF>PARTS_COUNT>0

let>q=1

Repeat>q

Separate>parts_%q%,COMMA,xys
let>xys_1=xys_1+8
let>xys_2=xys_2+8
MouseMove>xys_1,xys_2
MClick
wait>1.0
let>q=q+1

Until>q>PARTS_COUNT

Endif

-----
0:POSITIONS=558,897,70,25|870,897,70,25|1183,897,70,25|558,1289,70,25|870,1289,70,25|1183,1289,70,25|558,1681,70,25|870,1681,70,25|1183,1681,70,25|558,2073,70,25

User avatar
Grovkillen
Automation Wizard
Posts: 1131
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Clicking buttons in IE that needs scrolling down

Post by Grovkillen » Mon May 04, 2020 9:44 am

Use IE commands instead of screen recognition.
Let>ME=%Script%

Running: 15.0.27
version history

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1389
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Clicking buttons in IE that needs scrolling down

Post by Dorian (MJT support) » Mon May 04, 2020 9:50 am

GrovKillen is right. Experiment with the IE Element Wizard. It will click those below-the-fold buttons.
Yes, we have a Custom Scripting Service. Message me or go here

geon12
Newbie
Posts: 8
Joined: Fri May 01, 2020 10:06 am

Re: Clicking buttons in IE that needs scrolling down

Post by geon12 » Thu Jul 30, 2020 2:00 pm

Thanks! I'll try that!!

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