Finding a image position within a window

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Crumpledpapr
Newbie
Posts: 3
Joined: Sun Jun 09, 2019 3:13 pm

Finding a image position within a window

Post by Crumpledpapr » Tue Jun 11, 2019 3:43 am

Looking to combine the search within this window with the draw option for Image recognition. So basically search in a rectangle in a specific window. Thanks!

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

Re: Finding a image position within a window

Post by Dorian (MJT support) » Wed Jun 12, 2019 8:55 am

While combining those two aspect might not be possible when using the Wizard, you can probably work around it by detecting or controlling the size and position of the window so it's always the same. Then you'll know which co-ordinates to use. The name of the window won't matter, when it comes to the Image Recognition part - just for the window manipulation side of things.

Commands to investigate would be :

If you need to find out the window size and position :
GetWindowPos
GetWindowSize

If you need to change the window size and position :
MoveWindow
ResizeWindow
WindowAction
Always accepting custom script commissions. Message me or go here

Post Reply