![]() |
KeyBoard Events - 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: KeyBoard Events (/Thread-KeyBoard-Events) |
KeyBoard Events - ravi.gajul - 11-25-2011 Below code is used to right click on a webpage and perform a click on a particular item displayed on the box Code: Setting.WebPackage("ReplayType") = 2 ' This lines changes the run mode as Analog However, I would like know how to generate the press and hold control button event? Your help is much appreciated. Thanks, Ravi RE: KeyBoard Events - suresh vasu - 12-28-2011 Hi Ravi, Below lines may help you. Code: oShell.SendKeys "{ESC}" - press escape key http://www.qtpschool.com/2011/03/sendkeys-method-keyboard-oprations-in.html Thanks, Suresh. RE: KeyBoard Events - ravi.gajul - 12-28-2011 I figured that out Suresh.Thank you though..... ![]() RE: KeyBoard Events - sathish_win@outlook.com - 07-19-2017 (12-28-2011, 11:48 PM)ravi.gajul Wrote: I figured that out Suresh.Thank you though..... Could you please send the code for handling right click / context menu RE: KeyBoard Events - sathish_win@outlook.com - 07-19-2017 (12-28-2011, 11:48 PM)ravi.gajul Wrote: I figured that out Suresh.Thank you though..... Used the following code to right click - obj.MouseClick absx+5, absy+5, 2 ... but the options are not coming as context menu, it is tree view and each options are individual objects.. any idea on how to select the value after right click... |