Finding a image position within a window
Moderators: JRL, Dorian (MJT support)
-
- Newbie
- Posts: 3
- Joined: Sun Jun 09, 2019 3:13 pm
Finding a image position within a window
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!
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am
Re: Finding a image position within a window
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
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