Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
right Click on a object
#4
Not Solved
If may i ask what kind of object are you going to right click? You have to play around with GetROProperty or check out the FIREEVENT

You could try this one.

Code:
Set obj = CreateObject("Mercury.DeviceReplay")
Set WshShell = CreateObject("WScript.Shell")
'Get the absolute coordinates of the Object
absx = menu.QueryValue("abs_x")
absy = menu.QueryValue("abs_y")

obj.MouseClick absx, absy, 2
'Optional wait statement
wait 3

For i = 1 To idx-1
WshShell.sendkeys "{DOWN}"
Next
WshShell.sendkeys "{ENTER}"
Set WshSEll = nothing
Set obj = nothing

Lyndon Mac
Reply


Messages In This Thread
right Click on a object - by ramesh.tahiliani - 09-12-2009, 02:37 PM
RE: right Click on a object - by Tarik Sheth - 09-13-2009, 11:24 AM
RE: right Click on a object - by supputuri - 09-13-2009, 06:16 PM
RE: right Click on a object - by L-mac - 09-14-2009, 12:29 AM
RE: right Click on a object - by ramesh.tahiliani - 09-14-2009, 11:27 AM
RE: right Click on a object - by Saket - 09-14-2009, 12:15 PM
RE: right Click on a object - by basanth27 - 09-14-2009, 04:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Right Click On a Image and Click on a Link in WebElement RameshKrishnan 4 5,431 07-10-2013, 04:13 PM
Last Post: RameshKrishnan
  How do I left click on the right click menu in WinTreeView? RandomGrin 0 3,924 12-22-2012, 04:22 AM
Last Post: RandomGrin
  How do I left click on the Right click menu? RandomGrin 2 4,220 12-18-2012, 09:47 PM
Last Post: RandomGrin
  Click Object hamzaz 3 3,047 07-26-2012, 04:38 PM
Last Post: Arul
Wink QTP cannot identify object When i click on run Sitesh Agrawal 2 3,359 07-28-2008, 02:53 PM
Last Post: Sitesh Agrawal

Forum Jump:


Users browsing this thread: 2 Guest(s)