# Program to write for you?

I need a program that can write what you input in it, and "writing" it back on another process, letter by letter, not copying and pasting it back. Basically, I have a insanely huge file that would take me about a month of non-stop keyboard typing and I can't simply control-C to the other program because it doesn't allow pasting text (go figure). I do realize it's quite an unusual question, but I need this to be done by a machine and not myself. Is there any way to be done?

-
Sounds like you need tee. Are you in a GUI environment? If the other program "doesn't allow pasting" how would anything paste or write text into it? Are you trying to brute-force a license key? –  Ярослав Рахматуллин Nov 22 '12 at 11:10
You also need to improve your accept rate, people will be more willing to help if you give something back. –  Bali C Nov 22 '12 at 11:38

Note: everything below assumes Windows, and I haven't tried any of these.

If that doesn't work for you, you could possibly knock up a little program yourself to parse in the file and simulate the keypresses. Relevant functions would probably be SendInput or SendKeys. Or try having a look at inputsimulator.

-

Here is a VBScript that will read the characters from the textfile and simulate pressing those keys into your program. Just make sure you run the script, then give your program focus.

To ensure you have enough time I have added a 2 second delay at the start so you can switch to your program after running it

WScript.Sleep 2000
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\text.txt", 1)
Do Until objFile.AtEndOfStream
WshShell.SendKeys strCharacters
Loop

-