11-25-2011, 01:12 PM
(This post was last modified: 12-06-2011, 12:38 PM by ravi.gajul.)
Below code is used to right click on a webpage and perform a click on a particular item displayed on the box
However, I would like know how to generate the press and hold control button event? Your help is much appreciated.
Thanks,
Ravi
Code:
Setting.WebPackage("ReplayType") = 2 ' This lines changes the run mode as Analog
Browser("name:=Google").Page("title:=Google").WebEdit("name:=q").FireEvent "onclick",6,126,micRightBtn
wait(2)
Set WshShell = CreateObject("WScript.Shell")
itemIndex=16 ' Option number
For i = 1 To itemIndex
WshShell.sendkeys "{DOWN}" 'Navigate to the option
Next
WshShell.sendkeys "{ENTER}"
Set WshSEll = nothing
msgbox Browser("name:=Google").Dialog("regexpwndtitle:=Properties").Page("title:=General").WebEdit("html id:=_URL").getRoProperty("innertext")
However, I would like know how to generate the press and hold control button event? Your help is much appreciated.
Thanks,
Ravi