How can I fire an automatic key press or mouse click event when a color appears on the screen on other application or browser?
You can use the .NET SendKeys class to send keystrokes. Emulating mouse clicks requires P/Invoke. I don't know how to detect colors on the screen.