Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem in Input from keyboard:sendkeys
#1
Not Solved
Hi,
I tried using the sendkeysf for one of my scenario":after click of Ctrl F10 on Insert card dialog box ,a new pop-up screen should appear of Key Enter where by other details should be entered.But in my case after executing the below mentioned script..no Key enter pop-up is coming.Please advise asap.
Code:
Set WshShell = CreateObject("WScript.Shell") WshShell.AppActivate "Insertcard"
WshShell.SendKeys "^{F10}"

i tried using this ,but still as in real scenario after press of Ctrl + F10 the next pop up appears of KEY entry...but after executing the script
in this statement:
Code:
WshShell.SendKeys "^{F10}"

no action is seen on the screen.

Please let me know how it can be resolved?
I am using QTP9.2 and working on Java Windows application

Thanks ,
Rachna
Reply
#2
Not Solved
Hi,

I am not sure if java windows support events, but for a browser dialog
i used to use Browser.Page.Dialog.FireEvent "onfocus" before passing the keystrokes and it works for me.
Try that once Smile

Cheers,
Anil
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to input Japanese Character through UFT Alaguraja 0 778 07-01-2020, 11:32 AM
Last Post: Alaguraja
  How to get input from the user in QTP? shanthiK 10 18,046 08-07-2017, 11:34 PM
Last Post: zunebuggy
  KeyBoard Events ravi.gajul 4 15,693 07-19-2017, 08:49 PM
Last Post: sathish_win@outlook.com
  Unable to pass "Enter" Key through Sendkeys Lavanya N 1 3,915 07-24-2015, 02:17 PM
Last Post: Lavanya N
  how to use keyboard "Space' using qtp Naresh 2 2,931 06-11-2015, 06:30 PM
Last Post: venkatesh9032

Forum Jump:


Users browsing this thread: 1 Guest(s)