How to click with co-ordinates?
To click with co-ordinates, use ‘Mercury.DeviceReplay’ method.
E.g.,
x=Dialog("regexpwndtitle:=Message from webpage").WinButton("text:=OK","index:=0").GetROProperty("abs_x")
y=Dialog("regexpwndtitle:=Message from webpage").WinButton("text:=OK","index:=0").GetROProperty("abs_y")
Set mobj=CreateObject("Mercury.devicereplay")
mobj.mousedblclick x,y,LEFT_MOUSE_BUTTON
E.g.,
x=Dialog("regexpwndtitle:=Message from webpage").WinButton("text:=OK","index:=0").GetROProperty("abs_x")
y=Dialog("regexpwndtitle:=Message from webpage").WinButton("text:=OK","index:=0").GetROProperty("abs_y")
Set mobj=CreateObject("Mercury.devicereplay")
mobj.mousedblclick x,y,LEFT_MOUSE_BUTTON
Comments
Post a Comment