Documentation
Download compressed HTML Help
     
def RanorexPython.ControlFindImage (   hWnd,
  left,
  top,
  right,
  bottom,
  clipLeft,
  clipTop,
  clipRight,
  clipBottom 
)

The function searches an image on the screen within the control rectangle.

The positions are given in screen coordinates that are relative to the upper-left corner of the screen.

Parameters:
hWnd Handle to the window.
left Left position of the image to compare.
top Top position of the image to compare.
right Right position of the image to compare.
bottom Bottom position of the image to compare.
clipLeft (optional) Left position of a clipping region inside the control (client coordinates).
clipTop (optional) Top position of a clipping region inside the control (client coordinates).
clipRight (optional) Right position of a clipping region inside the control (client coordinates).
clipBottom (optional) Bottom position of a clipping region inside the control (client coordinates).
Returns:
If the image is found, the return value is a (x,y) tuple containing the upper left position of the found image (screen coordinates), otherwise None.
Remarks:
Supported only in RanorexPro. If a clipping region is specified (in control client coordinates), only this region is searched for the image.

Documentation based on Ranorex Version 1.5.0 - www.ranorex.com