tags:

views:

46

answers:

1

I want to write an application (C# would be best, other are also welcome) that works in the background in Windows/Linux, but is able to put characters in inputs and textareas of currently active window, in applications like Notepad, Browser URL Address and so on. How is this possible?

+4  A: 

Take a look at the SendKeys class. This should handle your situation.


Edit: If you want a Java solution, take a look at the Robot class.

Reed Copsey
Great! How about other programming languages? Do You know any solutions e.g. for Java?
MarcAndreson
@MarcAndreson: I edited my answer to give you a Java alternative, as well. I just did C# first since you said "it would be best" ;)
Reed Copsey