How to record ENTER button that we use through the keyboard in QTP for applications
+2
A:
I assume you want to replay an Enter key, in most cases when QTP does not record an action it's much better to add the step manually than trying to force QTP to record it.
If the test object in question supports Type you can use that:
Window("Calc").Type micReturn
Otherwise you can use the DeviceReplay object as described in this article
Set dr = CreateObject("Mercury.DeviceReplay")
dr.PressKey 28 ' 28 = Return (Enter)
Motti
2010-01-07 11:18:40