I am having a problem with right click recording. I need to access a menu that appears when you right click on an object.
I have tried the code below but I am still unable to access the menu.

I am testing a web app written using javascript, asp, any help would be greatly appreciated

Public Sub RClck ([rules],1)
Set obj = CreateObject("Mercury.DeviceReplay")
Set WshShell = CreateObject("WScript.Shell")
x = rules.QueryValue("abs_x")
y = rules.QueryValue("abs_y")
obj.MouseClick x+1, y+1, 2
For i = 1 To menu_item
WshShell.sendKeys "{DOWN}"
WshShell.sendKeys "{ENTER}"
set WshShell = nothing
Set obj = nothing

End Sub