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 -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -