Sunday 27 May, 2007

SendKeys Method in QTP

Hi Friends,

Use Sendkeys method using below help,

Reference - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/4b032417-ebda-4d30-88a4-2b56c24affdd.asp
set WshShell = CreateObject("WScript.Shell")
WshShell.AppActivate "Brand Names"wait 2
WshShell.SendKeys "NUM"

Thanks,
Jitesh Sojitra.

3 comments:

Anonymous said...

My qtp is 8.2
When I tried to use this code..
WScript.Shell
I am getting error.
Can't I use this with 8.2.
What is Basic concept behind WScript?

Thanks
sure1969us@yahoo.com

Anonymous said...

Make sure you have WSH installed on your machine.

Anonymous said...

xADfMu, watch cloud atlas trailer cloud atlas gay, yNOSur, cloud atlas movie score