I want to write a small application that can press keys on different process. The different process is a console application - but I want to run it in a hidden mode and specifically simulate the "Pause/Break" key-press on it (same as if it was focused and I pressed the pause key manually)
I've found those examples: How can I programmatically generate keypress events in C#? How to simulate key presses on a specific application
but I think they can't assist in my situation (or maybe I'm wrong?)
as for programming language - I don't much care - (c#/c++/c/python/ruby - whatever will do the job)