Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[QTP]Keyboard control + mouse click
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi every one,

i have got stuck by trying to make multi-selection of webelements. Sad I want to combinate "control button" from the keyboard and "left click" from the mouse. See the code below :

Quote:Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
'Select my First webelement
Browser("browser").Page("page").WebElement("mywebelement").Click
wait 2
WshShell.SendKeys ("^")
'Select my second webelement
Browser("browser").Page("page").WebElement("mySecondwebel").Click
Thanks for your help.

Lucie.
Reply


Messages In This Thread
[QTP]Keyboard control + mouse click - by lucieclaire - 12-17-2012, 09:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting background color of an object on mouse over Surya 2 3,887 06-27-2018, 08:51 PM
Last Post: vensas3181
  KeyBoard Events ravi.gajul 4 16,084 07-19-2017, 08:49 PM
Last Post: sathish_win@outlook.com
  How to get the links which appears on mouse hover of parent link rajendra649 9 35,573 03-10-2017, 06:35 PM
Last Post: satish00k
  how to use keyboard "Space' using qtp Naresh 2 3,096 06-11-2015, 06:30 PM
Last Post: venkatesh9032
  Automate BMC Control M applications using QTP Saranyaciet2 0 2,823 05-22-2015, 09:43 AM
Last Post: Saranyaciet2

Forum Jump:


Users browsing this thread: 1 Guest(s)