I'm trying to do a screencapture:
Code: Select all
Wait>1
FindImagePos>C:\Users\gealvare.DIV16\Documents\Macro Scheduler 14\cognos_images\query_name_marker.bmp,SCREEN,50,2,PTArr,PLArr,QueryCount,EXACT
Let>Pidx=0
While>Pidx<QueryCount
//If>QueryCount>0
Let>tx=PTArr_%Pidx%
Let>ty=PLArr_%Pidx%
Let>bx=PTArr_%Pidx%+200
Let>by=PLArr_%Pidx%-20
Let>file=query_text_%Pidx%.bmp
MouseMove>PTArr_0,PLArr_0
MessageModal>%tx%,%ty%,%bx%,%by%,%file%
ScreenCapture>%tx%,%ty%,%bx%,%by%,%file% <---- THIS IS WHERE IT BLOWS UP
LClick
//Endif
EndWhile>
It is the 2nd screen, isn't it? Arghh!
No, that's not it. These are the modified coordinates: 1032,1376,1232,1356,query_text_0.bmp
How can I diagnose this?
Windows 7 Professional, Service Pack 1 64 Bit
8GB RAM / 7.70 GB usable