java - Prevent system tray icon from stealing focus when clicked -


I am writing an application in Java which keeps an icon in the system tray (through). When this icon is clicked, I want it to automatically type some keys (through the class), any text field can be done in the focus while clicking (in any window ). Unfortunately, clicking on the system tray icon focus is removed from the first focused window, leading to the key stroke stolen.

Is there a way to type the text in the first focused window?

Probably not, at least not easily


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -