Resize and FindImagePos

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
msfan
Newbie
Posts: 2
Joined: Thu Mar 12, 2020 1:02 pm

Resize and FindImagePos

Post by msfan » Thu Mar 12, 2020 1:11 pm

Howdy,

At the start of my script, I resize the window of the app that my macro will function against. I've got many instances of FindImagePos within my script.

If i wanted to resize my app windows to make it bigger, i'm assuming all instances of FindImagePos will fail as it's not a relative movement to the window.

Is there anyway to make adjustments so i don't have to recreate all instances of FindImagePos?

Apologies if i'm not making sense or i'm misunderstanding some things. :D

When I started my script I was a bit of a noob, but I kept increasing it's functionality as my knowledge increased and now I don't want to have to recreate it to account for a larger app window if I don't have to.

Thanks.

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

Re: Resize and FindImagePos

Post by Marcus Tettmar » Thu Mar 12, 2020 2:06 pm

FindImgPos is only likely to fail if the images within the app also get bigger, or change in some way. Resizing an app doesn't usually increase the size of its contents.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

msfan
Newbie
Posts: 2
Joined: Thu Mar 12, 2020 1:02 pm

Re: Resize and FindImagePos

Post by msfan » Thu Mar 12, 2020 3:05 pm

Thanks Marcus. And great piece of software. Cheers.

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