-1

Good Morning, I developed a simple application that show me my printers ink levels on a java gui. my Gui

I'd like to run this program automatically every time that Ubuntu send to the printer print command. Can anybody help me?

Alessio Melani
  • 413
  • 3
  • 6
  • 7

1 Answers1

0

Well, If you can make users to use shortcuts, you can set your thread to be activated if "some key" is pressed. https://java.net/projects/jna/sources/svn/content/trunk/jnalib/contrib/w32keyhook/KeyHook.java

Once i used to code a keylogger for windows, and used this one. Maybe it can help you.

Ozan
  • 206
  • 1
  • 4
  • 13