0

When I'm in QTP and am automating a Gmail session a lot of the pages are dynamic. I need the line of code that will enable me to use keyboard shortcut keys within any of the gmail UI's.

1 Answers1

2

There are several ways to simulate keyboard action from QTP, this article describes some of them. Especially check out DeviceReplay.

From the linked post:

Set obj = CreateObject("Mercury.DeviceReplay")
Window("Notepad").Activate
obj.PressKey 63

Note: The PressKey method uses the appropriate ASCII or IBM Scan Code value for the key. "63" is the IBM Scan Code value for F5.

Ankur Jain
  • 236
  • 1
  • 8
Motti
  • 110,860
  • 49
  • 189
  • 262