Can anybody tell me how to right click on something using silktest?
I want to right click on an icon in the taskbar.
You know you've achieved perfection in design, not when you have nothing more to add, but when you have nothing more to take away
check out PopupSelect method
Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.
PopupSelect should work in majority of cases and you can also try using...
RECT rtPoint = Object.GetRect()
Object.Click (2, rtPoint.xPos, rtPoint.yPos)
xPos and yPos get tricky as they get you top left corner coordinates of Object. Try it if PopupSelect doesn't work and you should be able to figure out.
Click method (AnyWin, PushButton)
AnyWin class, PushButton class
Clicks either a window or a pushbutton.
object.Click ([iButton, iXpos, iYpos, bRawEvent])
iButton Optional. The number of the mouse button to click (1 for left, 2 for right, 3 for center).
"Fox News gives you both sides of every story: the president's side, and the vice president's side."
Thanks for your help guys. This helped a lot.