[QTP]Keyboard control + mouse click - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: [QTP]Keyboard control + mouse click (/Thread-QTP-Keyboard-control-mouse-click) |
[QTP]Keyboard control + mouse click - lucieclaire - 12-17-2012 Hi every one, i have got stuck by trying to make multi-selection of webelements. I want to combinate "control button" from the keyboard and "left click" from the mouse. See the code below : Quote:Dim WshShellThanks for your help. Lucie. RE: [QTP]Keyboard control + mouse click - udayanem - 12-17-2012 You can perform the left click operation means clicking on the enter button. So, try below: Code: Set o_WScript=createobject("WScript.Shell") ^ is for Ctrl ~ is for Enter. I hope it helps. Regards, Uday RE: [QTP]Keyboard control + mouse click - lucieclaire - 12-18-2012 Hi, thanks for your reply. I found one solution work for me Code: Dim MyWebelement I hope this will help others persons Lucie. Someone now of to close this thread as "resolved" ? thanks Lucie. |