Screen Resolution issue

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
tiwarib
Newbie
Posts: 3
Joined: Thu Jul 12, 2007 9:40 pm

Screen Resolution issue

Post by tiwarib » Tue Jul 24, 2007 9:43 pm

I am automating some features on Powerpoint using macroschedular's FindImagePos method. The images used in this method are captured on a machine that has a resolution of 1280x1024.

Now when I run the macroschedular script on a machine with a resolution 1280x780, then FindImagePos method is not able to find those images.

Any solution for this?

thanks and regards
bharat

User avatar
pgriffin
Automation Wizard
Posts: 460
Joined: Wed Apr 06, 2005 5:56 pm
Location: US and Europe

Post by pgriffin » Wed Jul 25, 2007 5:48 am

with FindImgPos you will need to have the SAME image, including the resolution.

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

Post by Marcus Tettmar » Wed Jul 25, 2007 6:00 am

Resolution (screen dimensions) ought not be an issue (assuming the image you are looking for is visible). The *size* of the screen shouldn't matter - the physical dimensions of the images won't normally change (assuming you're seeking a button or non sizeable gui element).

But what *will* make a difference is colour depth. If the other screen has a higher or lower colour depth then the images will not match. Perhaps that is actually what you are seeing.

As Paul says, you need an exact match so some control over the video layout is required.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

tiwarib
Newbie
Posts: 3
Joined: Thu Jul 12, 2007 9:40 pm

Post by tiwarib » Wed Jul 25, 2007 3:39 pm

The color depth is same on both the machines(16-bit). The issue is size.

The images on the toolbars and dialogboxes get recognized perfectly, as their sizes don't change. However the objects on the powerpoint slides - like some text-box - get resized according to screen-resolution. And its the images of these objects that didn't get recognized.

-bharat

User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Post by Rain » Wed Jul 25, 2007 9:41 pm

Just a thought.
Why not add the image of the other screen resolution to the library and have the script compare them one by one until it locates it? This is not the answer to your question but should solve the different screen resolution problem.

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