Micro Focus QTP (UFT) Forums
problem in sendkeys - 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 sendkeys (/Thread-problem-in-sendkeys)



problem in sendkeys - sk.aravind - 11-04-2009

I am currently working on automation of sendkeys

i want to open an application

here is my code

Code:
set WshShell = CreateObject("WScript.Shell")
Wshshell.AppActivate " screen"
WshShell.SendKeys "^N"

when the last line is executed, i get the following error

" To create a business component, you must first connect to a Quality center project with a business process testing license"

wat could be the problem


RE: problem in sendkeys - Saket - 11-05-2009

are you trying to create a business component? If so you must have the BPT license and as said in the message you will need to connect to Quality Center.
else if you should open a new test (not business component), paste your code and run your script.


RE: problem in sendkeys - sk.aravind - 11-05-2009

no saket. I am running my code in a normal test. not in a business component


RE: problem in sendkeys - Saket - 11-05-2009

strange the message should not pop up in this case.
have you tried with a fresh re start?


RE: problem in sendkeys - sk.aravind - 11-05-2009

yup. i did many times