12-08-2009, 06:28 PM
Hi ,
Try with "TextUtil" Utility object.
There is method called "GetTextLocation" associated with this Object.
Syntax:
TextUtil.GetTextLocation(TextToFind, hWnd, Left, Top, Right, Bottom[, MatchWholeWordOnly])
Return Value: Boolean
Example:
The below code searches for the word "Mercury" within the entire screen.
Once its found , you could go for DeviceReplay,WSH so on so forth for clicking on that.
Try with "TextUtil" Utility object.
There is method called "GetTextLocation" associated with this Object.
Syntax:
TextUtil.GetTextLocation(TextToFind, hWnd, Left, Top, Right, Bottom[, MatchWholeWordOnly])
Return Value: Boolean
Example:
The below code searches for the word "Mercury" within the entire screen.
Code:
l = -1
t = -1
r = -1
b = -1
Succeeded=TextUtil.GetTextLocation("16",0,l,t,r,b)
msgbox Succeeded
Once its found , you could go for DeviceReplay,WSH so on so forth for clicking on that.