Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QuickTestPro: How to record shortcut key in QTP??

Status
Not open for further replies.

shilu

IS-IT--Management
Jan 19, 2005
1
US
Can anyone guide me for recording shortcut key during record session. The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.
Thanks in advance
 
hi shilu,

to replay a shortcut, u need to do the following:

Set WshShell = CreateObject("Wscript.Shell")
WshShell.SendKeys "{F1}"

This example demonstrates how to press on the F1 shortcut,

hope this helps,
cheers,
kev
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top