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

what is syncurnisation point? what is the use of this in real time environment? plz explain?

6 Answers   AppLabs,


What are the differences between table and db checkpoints?

0 Answers  


In where you are keeping or maintaining shared object repository (file)in your appliction?

2 Answers   Inlogic,


How to identify flash application when the qtp is not identifying the flash application objects.

2 Answers  


What is different command used in command Prompt while using QTP?

0 Answers  






What is the difference between Client/Server application and Web application ?

2 Answers   ArisGlobal,


can we enable smart identification for test object

3 Answers  


What are the major/ important methods, functions in QTP we use realtime testing

0 Answers  


How many actions we can create with in a test?

7 Answers  


how i can delete the excel process for the task manager using QTP

2 Answers  


What is checkpoints for qtp?

0 Answers  


str="QTP AUTOMATION TESTING" here how many T are there in the str finally i want to display the T

10 Answers   HCL,


Categories