Wednesday, August 3, 2011

QTP Select Complete Text

In our previous article, we have discussed two powerful utilities : Mercury DeviceReplay and Sendkeys.

Here we will discuss a quick tip using Mercury DeviceReplay which will simulate "Control-A" through the keyboard.

The code goes here:

Const VK_CONTROL = 29
Const VK_A = 30

Set DeviceReplay = CreateObject("Mercury.DeviceReplay")
DeviceReplay.KeyDown VK_CONTROL
DeviceReplay.PressKey VK_A
DeviceReplay.KeyUp VK_CONTROL

------------------------------------------------------------------------------------------------------------------------------------
Have questions on this article? Feel free to ask me in the comments section below.

If you like this post, I would suggest you to subscribe my RSS feed to have future articles delivered to your email address directly.
----------------------------------------------------------------------------------------------------------------------------------

0 comments: