Jump to content

Removing KeyListener


Recommended Posts

Posted

Tell me, how am i supposed to make it so that if the client is minimzed it'll still listen to keys ?

Right now i have to have client in focus so that it'll listen to keys, welp.

Programs running under pretty much any operating system function based on "focus" so that you only have 1 window focused at once, therefore all keyboard/mouse input will be sent to that specific window. There are some programs that can be used to record input while they are not focused called "keyloggers". They are generally written in low level programming languages though as you need more access to the architecture than what Java might provide. I have implementations for keyloggers in both C and assembly. The C implementation is rather easy as C provides functions for this. The assembly one is rather difficult and it's based entirely on interrupt redirection. I am not aware of a possible implementation of keyloggers in Java (especially because the code runs in the JVM which breaks the connection to the actual architecture), but you could link native code through the JNI. If you plan to do this on the SDN there is no way it will be allowed but you might get away with it in local scripts.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...