UIM e2e_appmon probe fails to find bitmap image

Document ID : KB000098495
Last Modified Date : 30/05/2018
Show Technical Document Details
Issue:
To verify the successful connection into a XenDesktop the e2e script is supposed to match on the network bitmap icon at the system tray but fails to find it. The failure is due to a difference in screen size between when the script is created and scheduled. . 
 
Resolution:
There is #BitmapPrecision which can be set lower. 

Here is an example: 

#BitmapPrecision=87 

Pause until 
Bitmap("C:\Program Files (x86)\NimSoft\e2e_scripting\Images\test.bmp") 
InWindow("CHROME.EXE|Chrome_WidgetWin_1|New Tab - Google Chrome",1) 
InArea( 434, 445, 351, 776 ) 
PauseFalse 
MsgBox("'Wait for' at line " + #ErrorLine$ + " has failed !") 
End 
EndPause 

UseWindow("EXPLORER.EXE|MSTaskListWClass|Running applications",1) 
ClickMouse(Left,Down,351,22) 
ClickMouse(Left,Up,351,22) 

Here is another example using the TopInstance() function. 

Pause 5 secs until
Bitmap("PATH_TO_THE_BMP")
InWindow("VDI WINDOW",TopInstance())
InArea( 434, 445, 351, 776 ) 
PauseFalse 
MsgBox("'Wait for' at line " + #ErrorLine$ + " has failed !") 
End 
EndPause