Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Using Soft Keys in QTP

This is a discussion on Using Soft Keys in QTP within the QTP forums, part of the Software Testing category; How to use Soft Keys in QTP (Pls provide a code with example)I want to use soft keys like (Ctrl+F7),(Ctrl+F8) etc. in my script. Thanks, Vijay9421834186 NOTE : [This question ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 01-09-2007
Expert Member
 
Join Date: Oct 2006
Posts: 689
Thanks: 0
Thanked 53 Times in 44 Posts
JobHelper is on a distinguished road
Using Soft Keys in QTP

How to use Soft Keys in QTP (Pls provide a code with example)I want to use soft keys like (Ctrl+F7),(Ctrl+F8) etc. in my script.

Thanks,
Vijay9421834186

NOTE : [This question was asked by vijay sawale]
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-24-2007
yan yan is offline
Junior Member
 
Join Date: May 2006
Location: Tel Aviv ,Israel
Posts: 7
Thanks: 0
Thanked 2 Times in 2 Posts
yan is on a distinguished road
Re: Using Soft Keys in QTP

Window("Microsoft Internet Explorer").WinObject("Internet Explorer_Server").Type micCtrlDwn+micF7+micCtrlUp

etc...


the syntax is:
object.Type keyboardInput
Reply With Quote
  #3 (permalink)  
Old 02-15-2007
Junior Member
 
Join Date: Jan 2007
Location: kolkata
Posts: 12
Thanks: 0
Thanked 2 Times in 2 Posts
amarreddy79 is on a distinguished road
Re: Using Soft Keys in QTP

it is not advisable to use the soft keys in scripting.
If it is necessary the best way is to start record and use the soft keys then it will generate the code and you can use that for later use also.
Dont try to remember those statements to use them while you are enhancing the script.
here is the example
Window("Flight Reservation").ActiveX("MaskEdBox").Type micAltDwn + "f" + micAltUp
Window("Flight Reservation").ActiveX("MaskEdBox").Type micAltDwn + "o" + micAltUp
Reply With Quote
  #4 (permalink)  
Old 04-30-2007
Expert Member
 
Join Date: Apr 2007
Location: Kolkata
Posts: 151
Thanks: 3
Thanked 11 Times in 10 Posts
debleena23 is on a distinguished road
For pressing tab button on keyboard you can give....
Dim WshShell
set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{TAB}"
set WshShell=nothing

Similarly for other keys just type in the parameter.....within "{}"
Eg - "{DOWN}"
Eg- "^"+"{F11}"

Last edited by jainbrijesh; 07-06-2007 at 05:36 AM.
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
how to importforiegn keys .......... yagnkan Testing Issues 0 10-29-2006 03:35 PM


All times are GMT -4. The time now is 09:35 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved