Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Query:Input from Keyboard
#3
Not Solved
This example will be helpful to you for sending keyboard inputs to the application

Code:
set WshShell = WScript.CreateObject("WScript.Shell")
         WshShell.Run "calc"
         WScript.Sleep 100
         WshShell.AppActivate "Calculator"
         WScript.Sleep 100
         WshShell.SendKeys "1{+}"
         WScript.Sleep 500
         WshShell.SendKeys "2"
         WScript.Sleep 500
         WshShell.SendKeys "~"
         WScript.Sleep 500
         WshShell.SendKeys "*3"
         WScript.Sleep 500
         WshShell.SendKeys "~"
         WScript.Sleep 2500
Reply


Messages In This Thread
Query:Input from Keyboard - by Rachna - 04-02-2009, 05:13 PM
RE: Query:Input from Keyboard - by manojith1984 - 04-02-2009, 05:33 PM
RE: Query:Input from Keyboard - by Tarik Sheth - 04-02-2009, 07:16 PM
RE: Query:Input from Keyboard - by Tarik Sheth - 04-07-2009, 10:50 AM
RE: Query:Input from Keyboard - by Rachna - 04-07-2009, 11:45 AM
RE: Query:Input from Keyboard - by Rachna - 04-08-2009, 09:39 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to input Japanese Character through UFT Alaguraja 0 900 07-01-2020, 11:32 AM
Last Post: Alaguraja
  How to get input from the user in QTP? shanthiK 10 18,561 08-07-2017, 11:34 PM
Last Post: zunebuggy
  KeyBoard Events ravi.gajul 4 16,088 07-19-2017, 08:49 PM
Last Post: sathish_win@outlook.com
  how to use keyboard "Space' using qtp Naresh 2 3,098 06-11-2015, 06:30 PM
Last Post: venkatesh9032
  Query regarding "Call" statement anupam4j 1 2,028 09-26-2014, 01:46 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)