relative coordinates

Ideas for new features & functions

Moderators: Dorian (MJT support), JRL

SuitedAces
Pro Scripter
Posts: 50
Joined: Thu Feb 21, 2008 9:11 pm

Post by SuitedAces » Sun Apr 13, 2008 11:04 am

I just wanted to add that this command would be useful with ocr
ScreenCaptureRel>wnd,L,T,h,w,x1,y1,x2,y2,filename,ReturnVal

23ohagan
Newbie
Posts: 12
Joined: Tue Feb 09, 2016 6:05 pm

Re: relative coordinates

Post by 23ohagan » Tue Feb 09, 2016 9:11 pm

I am using MS 14.2.05

..... I'm learning, bare with me please.

Ok.. so I have a page and I want MS to look down the entire length of that page to look for an image, not just what's visible.... I would use

Code: Select all

GetScreenRes>w,h 
ScreenCapture>0,0,w,h,filename 

before my findimage code?

Can anyone give me a clear example using my code

Code: Select all

FindImagePos>C:\Users\Win7\Macro Scheduler 14\IMAGES\Join.bmp,SCREEN,0.7,1,XArr,YArr,NumFound1,CCOEFF
Currently Im having to do "PAGE DOWN" then look again... Rinse, repeat..
Using:
MS 14.2.07 (regular)
Windows 7
Browser: Chrome

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

Re: relative coordinates

Post by Marcus Tettmar » Thu Feb 11, 2016 1:16 pm

You still need to do Page Down because the image you are finding has to be visible.

NOTHING will get you an image of the part of the page not on the screen.

Just keep doing your page down and repeat ....
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

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

Re: relative coordinates

Post by Grovkillen » Mon Feb 15, 2016 11:29 am

You could try to use PhantomJS.
Let>ME=%Script%

Running: 15.0.27
version history

23ohagan
Newbie
Posts: 12
Joined: Tue Feb 09, 2016 6:05 pm

Re: relative coordinates

Post by 23ohagan » Wed Mar 23, 2016 11:01 am

Marcus Tettmar wrote:You still need to do Page Down because the image you are finding has to be visible.

NOTHING will get you an image of the part of the page not on the screen.

Just keep doing your page down and repeat ....

Thank you Marcus.
Using:
MS 14.2.07 (regular)
Windows 7
Browser: Chrome

23ohagan
Newbie
Posts: 12
Joined: Tue Feb 09, 2016 6:05 pm

Re: relative coordinates

Post by 23ohagan » Wed Mar 23, 2016 11:02 am

Grovkillen wrote:You could try to use PhantomJS.
Thank you, I will check it out!
Using:
MS 14.2.07 (regular)
Windows 7
Browser: Chrome

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