GetTextlocation Working in one machine not others
I am using this GetTextLocation in 3 workstation, but its working fine in one.
In one wks(workstation)this GetTextLocation getting the location correctly, but in other wks its taking the winobject location not the TEXT location .
Please help me on this
BDocTrue=Window("text:=Application Name\Dok.*").Window("regexpwndclass:=TfrmPluginEdi tor","regexpwndtitle:=Dokument auswählen").WinObject("regexpwndclass:=TDBGrid","n ativeclass:=TDBGrid").GetTextLocation(IMTextDocnam e,x1,y1,x2,y2,False)