Micro Focus QTP (UFT) Forums
How can I Handle ShortKey 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: How can I Handle ShortKey in QTP (/Thread-How-can-I-Handle-ShortKey-in-QTP)



How can I Handle ShortKey in QTP - taritchakraborty1987 - 05-12-2011

I have One cobol Application....
In this Application have some shortcut key like "F2" for search, "Esc" for close window etc.
When I want to record this type of event through QTP, it can not recognize this type of event, though it creating a script on recording time like "Type micF2" or "Type micEsc" but its not working on runtime. after recording my script when I want run this script its giving run time error.

Can anybody tell me how can I over come this type of situation.


RE: How can I Handle ShortKey in QTP - amitspandey - 05-12-2011

Hi,
follow the steps:
1)Well you need to first learn the object.
2)use:
Object.type micF2

eg:
window(abc).dialog(xyz).type micF2

plz note:That u should first learn the object as "window(abc).dialog(xyz)" is already learned by the QTP.





RE: How can I Handle ShortKey in QTP - supputuri - 05-13-2011

What is the error message your are getting?