I need some way to make a program that types letters into command prompt that looks like a keyboard is typing it. I’ve searched google for about 2 hours and found nothing that can help me. I would appreciate it if someone could help.
^ Almost like that… except I want it to be an ACTUAL program that types into the computer’s command prompt… but if that isn’t possible… then I can settle with notepad as well.
So, are there no more solutions?
You could simulate it by creating a command line program that writes your text character by character to the screen.
PowerShell/C/C++/C# can be used (well, any language that can clear the screen in the command window)
Assuming you know how to program/script…
EDIT: I forgot to add that i don’t think you can hook into cmd.exe just like that and type into it
If it’s possible, then it’s not a beginners task.
Thanks. I might need to look into that.
May i ask; what are you trying to accomplish?
I’m trying to make it play the lyrics to Still Alive.
That is a lot easier than what i thought you were doing.
Have you ever worked with the command prompt?
If so, i can help you get started pretty easy
Here is a little snip. Does it make ANY sense to you?
using System;
using System.Threading;
class MyClass
{
static void Main()
{
Console.Write("Portal");
Thread.Sleep(500);
Console.Write(" Test!\r\n");
string Test = "This is a test string that will get printed character by character to the screen";
int Len = Test.Length;
for(int i=0;i<Len;i++)
{
Console.Write(Test[i]);
Thread.Sleep(50);
}
Console.ReadLine();
}
}
However if this doesn’t make any sense, then you can learn it on a few hours.
It’s just the most basic you have to learn.
And if you create it this way, you will have an exe file you can distribute to your friends.
Let me know if you want’ to proceed this way.
is that Perl? why not use Python? much simpler
It’s C#
How did you manage to mix up perl and C# ?!
Everything you need to compile & run a C# snip is on your computer assuming you run windows
Python needs to be installed first.
python has simpler code…
whatever, C# is probably fine
It depends on what you are used to
Of course. That link that i posted actually has support for using your own text files now, so that might help
Hi, I like the idea to (re)make the aperture science ARG.
An old snapshot of the website can be found here:
https://replay.web.archive.org/20100408211755/https://www.aperturescience.com/
I wrote a little command line tool in Delphi, which allows you to:
*type text with adjustable delay on a standard windows command line (batch file)
*set text and background color for each individual character
*Omit CR+LF on the end of a command, allowing you to continue typing in you next command
*Backspace: go back some characters on the current line to make overwrites or clear text
*Use it just for a delay in batch files without typing anything
Zip contains binary, source and example script.
download
I’m curious now, how do you compile C# without installing a compiler? I didn’t realise Windows came with one.
C# is a part of .NET framework which is built-in every version of vista and 7.
XP doesn’t ship with .net framework but there is a big chance you have it installed anyway (as a lot of programs use it).
So both compiler and vm ship with .NET.
You can compile my code snip with the C# Compiler which is located here:
\Windows\Microsoft.NET\Framework<YourVersion>\csc.exe
I tried using csc.exe but it won’t work. Command Prompt pops up for a split second then disappears.
I’m sorry, we got a bit offtopic there.
It wasn’t intended as a tutorial for you.
I will upload a zip file to my server with a bat file you can double click.
So you don’t have to think about command line parameters
I just have to get dinner first.
I’ll post as soon as i have created it.