-
Expert Member
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]
-
Junior Member
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
-
Junior Member
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
-
Expert Member
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 04:36 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules