Problems with Right click recording
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.
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
set WshShell = nothing
Set obj = nothing