We have discovered an issue where if the window we want to scan for a needle bitmap is not on the primary display but rather on say the right hand display then the image is not found. As long as the window is on the screen set to 'Make this my primary display' then it works fine. Here is some of the code with other material which is not relevant. The complete loop and code is not shown of course.
FindImagePos>c:\reports\green man.bmp,WINDOW:Order Entry Full : A.T.S. PRODUCTION,0.9,1,X,Y,NumFound,CCOEFF
GetWindowHandle>Order Entry Full : A.T.S. PRODUCTION,hWnd
Let>kpSQL=Select SEQ_NBR,APT_L_DATE,Name,Abrv,Address1,City,State,Zip FROM PRD1.DELV Where Order_NBR = '%sOrder%'
FindImagePos>c:\reports\gray man.bmp,WINDOW:Order Entry Full : A.T.S. PRODUCTION,0.9,1,X,Y,NumFound,CCOEFF