Sunday, September 14, 2008

How to use a key combination to send input from keyboard to a application

For Ex: how to send a key combination Alt + F1 key combination to Terminal Emulator?

You can use the below statements:

Dim WshellObjSet
WshellObj=WScript.CreateObject("WScript.Shell")
WshellObj.SendKeys "%+{F1}"

But make sure, whether QTP set context to the application before the these statements.

1 comment:

Chaithu2rahul said...

hi this is chaithu may i know how 2 do partition in VISTA home premium .send me reply this is my Email .chaithu2rahul@gmail.com,.This is My blog wwww.Chaithu2rahul@blogspot.com