| | |
Making a Java Key Logger
![]() |
I don't think you can do that in Java. You can do it in C++ easy enough by installing an OS hook. Used generally by macro programs and spyware.
But I don't think Java has this kind of access to WIN32. Maybe through JNI?
Jeff Heaton
http://www.heatonresearch.com
But I don't think Java has this kind of access to WIN32. Maybe through JNI?
Jeff Heaton
http://www.heatonresearch.com
You can get the mouse coordinates of the mouse.
That will give you the location on screen.
From that you could get the Component the mouse is over.
From that you can retrieve a Graphics object which can draw that component.
From that you can retrieve an offset Graphics object which can draw that component somewhere else (if I read the API docs correctly).
What I don't know is whether any of that will do you much good
That will give you the location on screen.
From that you could get the Component the mouse is over.
From that you can retrieve a Graphics object which can draw that component.
From that you can retrieve an offset Graphics object which can draw that component somewhere else (if I read the API docs correctly).
What I don't know is whether any of that will do you much good
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
Join Date: Aug 2009
Posts: 2
Reputation:
Solved Threads: 0
thanks luke, ill keep that in mind...just wondering if it will work like the c++ logger mentioned abov ...ie at operating system level its a fairly important feature, but with file output would be easy to a: buffer the keystrokes and can then process in the background, and b: save embedding c code in a pre written java program.
ill look in the forums n see if theres a nire recnt thread...thanks again, and for the advice to a noob.
Pete
ill look in the forums n see if theres a nire recnt thread...thanks again, and for the advice to a noob.
Pete
![]() |
Similar Threads
- Making A Java Compiler... In Java (Java)
- Making a registry key (Assembly)
- Java multiple text file saving (Java)
- Making a COPY PROTECTED CD... (IT Professionals' Lounge)
- Java Applet Help (Java)
Other Threads in the Java Forum
- Previous Thread: problem in retrieving data via RMS
- Next Thread: method in java application
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary block bluetooth character class client code component consumer csv database desktop developmenthelp eclipse error fractal ftp game gameprogramming givemetehcodez graphics gui html ide image integer j2me j2seprojects japplet java javaarraylist javac javaee javaprojects jni jpanel julia lego linked linux list loops mac map method methods mobile netbeans newbie number objects online oriented panel printf problem program programming project projects properties recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server set singleton sms sort sql string swing system test textfields threads time title tree tutorial-sample ubuntu update windows working






