I'm a application developer for a large group of people. Some of these people don't have the WScript.Shell library installed on their computers to use the SendKeys method. IT will not take the time to install this as they don't deem it a necessary feature for everyone. Is there a way I can do keystrokes like CTRL+C or ALT+O without the Shell library?

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

2

There is AutoIt, that would require just the executable be present and not a legit "installation". Perhpas you could get away with that? With AutoIt you can do some very smart SendKey-like operations, even addressing forms and so forth.

Answered 09/26/2013 by: bkelly
Red Belt

  • I can look into that. If IT doesn't see the need for that either, is there an alternative? We can only use software, executables, and scripts that they approve of.
Please log in to comment

Answers

1

You can pipe a response to programs that support it (typically command line tools). To address an installation this will likely not suffice, but using the less than sign you can send the contents of a text file to a command like so:   

  <command> < C:\Temp\response-strings.txt
Answered 09/26/2013 by: bkelly
Red Belt

Please log in to comment
0

KEYSTACK can be also a good candidate for you. http://jpsoft.com/help/index.htm

Answered 09/26/2013 by: dj_xest
Fifth Degree Black Belt

  • That looks like another application or executable. I take it there is no way of emulating a keystroke without accessing the Shell library or some type of software?
    • Not sure if there is any. Try also the Powershell commands in Windows 7 and see.
Please log in to comment
Answer this question or Comment on this question for clarity