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
Screen Resolution issue
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
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.
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
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
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