Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to write “blindly” to whatever object is selected
#5
Solved: 10 Years, 9 Months, 2 Weeks ago
Supputuri,

Can the Wsh method be used for other keyboard actions such as 'micDwn' (pressing the arrow keys)? - I tried it by replacing the "Hello" with micDwn but couldn't get it to work, so presume it either can't be down or is done differently. Any ideas?
Probably should have searched online before asking, but I have found the answer to my own question. For anyone elses benefit, yes it can be done and below are the key values:

micF1 WshShell.SendKeys "{F1}"
micF2 WshShell.SendKeys "{F2}"
micF3 WshShell.SendKeys "{F3}"
micF4 WshShell.SendKeys "{F4}"
micF5 WshShell.SendKeys "{F5}"
micF6 WshShell.SendKeys "{F6}"
micF7 WshShell.SendKeys "{F7}"
micF8 WshShell.SendKeys "{F8}"
micF9 WshShell.SendKeys "{F9}"
micF10 WshShell.SendKeys "{F10}"
micF11 WshShell.SendKeys "{F11}"
micF12 WshShell.SendKeys "{F12}"
SF1 WshShell.SendKeys "+{F1}"
SF2 WshShell.SendKeys "+{F2}"
SF3 WshShell.SendKeys "+{F3}"
SF4 WshShell.SendKeys "+{F4}"
SF5 WshShell.SendKeys "+{F5}"
SF6 WshShell.SendKeys "+{F6}"
SF7 WshShell.SendKeys "+{F7}"
SF8 WshShell.SendKeys "+{F8}"
SF9 WshShell.SendKeys "+{F9}"
SF10 WshShell.SendKeys "+{F10}"
SF11 WshShell.SendKeys "+{F11}"
SF12 WshShell.SendKeys "+{F12}"
"SF1" WshShell.SendKeys "+{F1}"
"SF2" WshShell.SendKeys "+{F2}"
"SF3" WshShell.SendKeys "+{F3}"
"SF4" WshShell.SendKeys "+{F4}"
"SF5" WshShell.SendKeys "+{F5}"
"SF6" WshShell.SendKeys "+{F6}"
"SF7" WshShell.SendKeys "+{F7}"
"SF8" WshShell.SendKeys "+{F8}"
"SF9" WshShell.SendKeys "+{F9}"
"SF10" WshShell.SendKeys "+{F10}"
"SF11" WshShell.SendKeys "+{F11}"
"SF12" WshShell.SendKeys "+{F12}"
"CF1" WshShell.SendKeys "^{F1}"
"CF2" WshShell.SendKeys "^{F2}"
"CF3" WshShell.SendKeys "^{F3}"
"CF4" WshShell.SendKeys "^{F4}"
"CF5" WshShell.SendKeys "^{F5}"
"CF6" WshShell.SendKeys "^{F6}"
CF1 WshShell.SendKeys "^{F1}"
CF2 WshShell.SendKeys "^{F2}"
CF3 WshShell.SendKeys "^{F3}"
CF4 WshShell.SendKeys "^{F4}"
CF5 WshShell.SendKeys "^{F5}"
CF6 WshShell.SendKeys "^{F6}"
micHome WshShell.SendKeys "{HOME}"
micEnd WshShell.SendKeys "{END}"
micBack WshShell.SendKeys "{BACKSPACE}"
micReturn WshShell.SendKeys "{ENTER}"
micTab WshShell.SendKeys "{TAB}"
micDwn WshShell.SendKeys "{DOWN}"
micUp WshShell.SendKeys "{UP}"
micLeft WshShell.SendKeys "{LEFT}"
micRight WshShell.SendKeys "{RIGHT}"
micEsc WshShell.SendKeys "{ESC}"
Reply


Messages In This Thread
RE: How to write “blindly” to whatever object is selected - by D2010 - 08-04-2010, 03:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to get selected childitem in webtable? rupali0205 1 5,710 02-08-2012, 03:43 PM
Last Post: rupali0205

Forum Jump:


Users browsing this thread: 1 Guest(s)