Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to implement Mouse Right button
#4
Solved: 11 Years, 4 Months ago
See if any of this thread helps you-
https://www.learnqtp.com/forums/archive/...-2356.html
https://www.learnqtp.com/forums/Thread-R...-Web-Table
or you may try this -
Code:
Dim strObj
set strObj = browser("Google").Page("Google")
x_coord = strObj.GetROProperty("abs_x")

y_coord = strObj.GetROProperty("abs_y")

Set objDr = CreateObject("Mercury.DeviceReplay")

objDr.MouseClick x_coord, y_coord, 2
Dim WshShell
set WshShell = CreateObject("WScript.Shell")
Dim i ,n
For i = 0 to 14
If i = 12 Then
wshshell.sendkeys "{ENTER}"
For n = 0 to 6
If n = 5 Then
wait(1)
wshshell.sendkeys "{ENTER}"
Exit for
else
wshshell.sendkeys "{DOWN}"
End If
Next
Exit for
else
wshshell.sendkeys "{DOWN}"
End If
Next

Reply


Messages In This Thread
RE: How to implement Mouse Right button - by Saket - 01-19-2011, 03:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting background color of an object on mouse over Surya 2 3,904 06-27-2018, 08:51 PM
Last Post: vensas3181
  How to get the links which appears on mouse hover of parent link rajendra649 9 35,599 03-10-2017, 06:35 PM
Last Post: satish00k
  How to capture operation such as hovering a mouse nikhilcogni 5 4,764 03-23-2013, 11:17 AM
Last Post: sams001
  [QTP]Keyboard control + mouse click lucieclaire 2 23,014 12-18-2012, 03:11 PM
Last Post: lucieclaire
  How to implement mousemove method silpavinod 0 3,685 10-10-2012, 12:19 PM
Last Post: silpavinod

Forum Jump:


Users browsing this thread: 4 Guest(s)