Jump to content

Removing KeyListener


iJodix

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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