Hi All,
I am using QTP for one of the Desktop
application which uses Keyboard inputs like 'Tab ,F7 etc'
and also mouse (Click).
After recording when i am running the Script ,it is not
able to recognize the keyboard inputs like F7,Tab and mouse
Click because of which either i have to skip that part or
manually do the inputs.

Please answer how can i make script more flexible so that
it will recognize both keyboard and mouse operations.

Answers were Sorted based on User's Feedback



Hi All, I am using QTP for one of the Desktop application which uses Keyboard inputs..

Answer / umashankar

u can code that part using WSH method of QTP.

set ws = createObject(WSShell.scripting)
ws.sendkeys "{TAB}"

Is This Answer Correct ?    4 Yes 1 No

Hi All, I am using QTP for one of the Desktop application which uses Keyboard inputs..

Answer / sunil.sam

Thank You Umashankar for the prompt Reply ,
The suggestion helped me to control keyboard Function but
still am facing problem with the Mouse control.
So Can u tell me how to take care of that ?

Is This Answer Correct ?    0 Yes 1 No

Hi All, I am using QTP for one of the Desktop application which uses Keyboard inputs..

Answer / umashankar

this can be achieved by using Fireevent onmouseover. try
this and if u r not able to get it mention ur question
clearly

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More QTP Interview Questions

Can abody explain me Send keys concept

1 Answers   Cap Gemini,


i am entering wrong data or wrong password in a text box and click on submit button .i am getting a popup window with a message Please enter the correct password or data .How can i handle this situation by using QTP.

11 Answers   SAP Labs,


i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet

0 Answers   IBM,


What is checkpoint in qtp?

0 Answers  


Please anybody can tell the where can i get the information about pharma and bank testing, i put the pharma&bank projects in my resume, so i dont know what to tell about them, so where can i get the information and what we test for these, i need domain information, what r the screen we test?

0 Answers  






Can objects recognised without repository?

5 Answers  


what are the Tools for version control?

3 Answers  


Hi, How to give drop down values as input [Variable] from data table in QTP? If u know share with me.

3 Answers  


hi all, I have installed QTP successfully on windows vista. I am able to record and run on windows applications, but facing problem with web applications. While recording, I am able to open the web application, but when I click on any object or give login name and password, the events are not getting recorded in QTP. Could anyone solve the problem. Any settings to be done for web applications other than selecting web-addin? Waiting for replies. Thanks in advance.

4 Answers  


what is the difference between development and testing

1 Answers  


What is the need and applications of learning VB script for a automation(QTP) engineer ain Realtime ?

2 Answers  


How can you send user defined messages to test report?

0 Answers  


Categories