Query:Input from Keyboard - 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: Query:Input from Keyboard (/Thread-Query-Input-from-Keyboard) |
Query:Input from Keyboard - Rachna - 04-02-2009 Hello, while recording my script in QTp9.2 with Java application,at one point I need to press Ctrl + F10 ,so that a Pop-up screen is displayed to completed the process in my application.How do i write a function in VB which could include this CTRL + F10 portion. Please let me know. Regards, Rachna RE: Query:Input from Keyboard - manojith1984 - 04-02-2009 Hi...U can use SendKeys to handle keyboard events RE: Query:Input from Keyboard - Tarik Sheth - 04-02-2009 This example will be helpful to you for sending keyboard inputs to the application Code: set WshShell = WScript.CreateObject("WScript.Shell") RE: Query:Input from Keyboard - nandu - 04-07-2009 Hi.. Before writing this statement.. First Activate calculator.. -------------------- ...calculator.activate WshShell.SendKeys ("%{F4}") ------------------ RE: Query:Input from Keyboard - Tarik Sheth - 04-07-2009 Yes, First the focus should be on Calculator and then use sendkeys to close it. RE: Query:Input from Keyboard - Rachna - 04-07-2009 Thanks for your help. But while executing a scenario ress CTRL F10 once the "Insertcard dailog" appears so that "keyEnter Dialog" appears and we can enter the Card number ihav eused the below mentioned script ,but it doesnt work.Kindly help. Code: JavaWindow("Sales_BasicFlow").JavaButton("Card").Click But while executing a scenario ress CTRL F10 once the "Insertcard dailog" appears so that "keyEnter Dialog" appears and we can enter the Card number ihav eused the below mentioned script ,but it doesnt work.Kindly help. Code: JavaWindow("Sales_BasicFlow").JavaButton("Card").Click But while executing a scenario ress CTRL F10 once the "Insertcard dailog" appears so that "keyEnter Dialog" appears and we can enter the Card number ihav eused the below mentioned script ,but it doesnt work.Kindly help. Code: JavaWindow("Sales_BasicFlow").JavaButton("Card").Click RE: Query:Input from Keyboard - Rachna - 04-08-2009 But while executing a scenario ress CTRL F10 once the "Insertcard dailog" appears so that "keyEnter Dialog" appears and we can enter the Card number. i have used the below mentioned script ,but it doesnt work.Kindly help. Code: JavaWindow("Sales_BasicFlow").JavaButton("Card").Click Code: Set WshShell = CreateObject("WScript.Shell") WshShell.AppActivate "Sales_BasicFlow" WshShell.Sleep 3000 WshShell.SendKeys "^{F10}" no action is seen on the screen. Please let me know how it can be resolved? I am using QTP9.2 and working on Java Windows application |