Micro Focus QTP (UFT) Forums
Is it possible to record keyboard shortcuts in QTP? - 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: Is it possible to record keyboard shortcuts in QTP? (/Thread-Is-it-possible-to-record-keyboard-shortcuts-in-QTP)



Is it possible to record keyboard shortcuts in QTP? - sk.aravind - 11-03-2009

Hey guys

I am currently automating a Windows application. i need to use the keyboard shorcuts to open a file or create a file etc.

is it possible to record these keyboard shortcuts(ctrl+N, ctrl +S etc)?

Thanks
Aravind


RE: Is it possible to record keyboard shortcuts in QTP? - Saket - 11-03-2009

Yes QTP does record shorcuts keys,Not sure for other application, I have tried this for 'notepad', it works.
alternately you can script such statements in expert view using SendKeys
e.g
Code:
set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "^N"



RE: Is it possible to record keyboard shortcuts in QTP? - sk.aravind - 11-03-2009

thanks a lot saket


RE: Is it possible to record keyboard shortcuts in QTP? - venkatbatchu - 11-03-2009

Hi All,
Please find the attached document which gives u the complete picture about the recording keys..


RE: Is it possible to record keyboard shortcuts in QTP? - dev_mech9 - 05-17-2012

HI...
content not available in attached document...
can you please add it.

-Devidas


RE: Is it possible to record keyboard shortcuts in QTP? - raaj123 - 05-19-2012

hi,

Attached document not contains any data.
please add new file.

Regards,
Raaj123



RE: Is it possible to record keyboard shortcuts in QTP? - ravi.gajul - 05-21-2012

Please find attached the document for your reference.Taken from Dani Vainstein's book