I can't find any way to do this (this is test code btw, it's not part of the finished script, it's just to let me see if and how it works):Sometimes it is useful to have the ScreenCapture only capture a portion of the screen - like a specific window. This is good when we know the image will only appear within those bounds.
Code: Select all
WaitWindowOpen>Export Audio Mixdown
SetFocus>Export Audio Mixdown
GetScreenRes>srx,sry
ScreenCapture>0,0,srx,sry,C:\Documents and Settings\Phil\My Documents\Download\export.bmp
SetFocus>Export Audio Mixdown
let>monoclear=0
let>monoticked=0
FindImagePos>C:\Documents and Settings\Phil\My Documents\Download\monoempty.bmp,C:\Documents and Settings\Phil\My Documents\Download\export.bmp,20,1,monx,mony,monoclear
FindImagePos>C:\Documents and Settings\Phil\My Documents\Download\monoticked.bmp,C:\Documents and Settings\Phil\My Documents\Download\export.bmp,20,1,monx,mony,monoticked
IF>monoclear>0
msg>Mono Box is cleared%CRLF%Clear %monoclear% Ticked %monoticked%
ENDIF
IF>monoticked>0
msg>Mono Box is ticked%CRLF%Clear %monoclear% Ticked %monoticked%
ENDIF
I know I could speed it up with some IFs and ELSEs to avoid having to do both "needle" checks but ideally I would only capture the window "Export Audio Mixdown" and use that as the haystack image. It is quite a small window and so this would save a lot of time I am sure.
I can't use a screen area as the window can be moved and so on.
Have I misunderstood your quote? I have searched the documentation but it basically just asks for coordinates.