Micro Focus QTP (UFT) Forums
problem in implementing the keyboard inputs - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: problem in implementing the keyboard inputs (/Thread-problem-in-implementing-the-keyboard-inputs)



problem in implementing the keyboard inputs - vijay44 - 02-05-2010

Hi,
Iam want to do keyboard operations

"ctrl+down" and "shift"

I am trying the below code.
Code:
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{CTRL + }"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{SHIFT}"
Set WshShell = Nothing
iam getting error message, invalid call or procedure.
Any help will be really appreciated.
Regards;
Vijay


RE: problem in implementing the keyboard inputs - Saket - 02-05-2010

try
Code:
WshShell.SendKeys "^{DOWN}"
WshShell.SendKeys "+"