Starting MS Access in Citrix.
My goal is to use FindImagePos to locate upper left hand corner of MS Access title to then maximize the window.
With the MS Access window at max, I select a needle of the upper left hand corner and save the bitmap.
FindImagePos will find this bitmap if Access is maximized but will not find it if Access is not maximized.
I have reversed this process by creating a bitmap of the upper left hand corner of the Access window when it is not maximized.
FindImagePos will not find the new bitmap on the Access maximized window but will find it when the Access window is not maximized.
I have been conservation on selecting an image and have used Paint at 800% to view the selected image.
Here is the code I am using to check for the image under max/min windows
thanks for the help
Code: Select all
label>check_again
GetScreenRes>Sx,Sy
wait>1
ScreenCapture>0,0,Sx,Sy,G:\AB Brown\ABBSCR\Macro Scheduler 1\BMPs\Avantis\screen.bmp
FindImagePos>G:\AB Brown\ABBSCR\Macro Scheduler 1\BMPs\Avantis\Access_Open_b.bmp,G:\AB Brown\ABBSCR\Macro Scheduler 1\BMPs\Avantis\screen.bmp,5,1,X,Y,imgs_a
if>imgs_a>0
MessageModal>%imgs_a%, Avantis
let>direct=G:\AB Brown\ABBSCR\Macro Scheduler 1\BMPs\Avantis\
MouseMove>X_0,Y_0
else
MessageModal>%imgs_a%, Avantis
endif
goto>check_again