Sigh, I just suck at coding. I found the jnativehook files but now I don't even know how to import them to the project so that the java file will know they exist. I've tried googling for answers but I can't understand most of what they're saying.
I did what you said and I just get 16 different errors lol
Those errors probably already existed already. Welcome to programming where you correct one bug and 20 new ones appear.
@ITexpert, we aren't going to spoon feed you. Look at what the code is before you even try to use it. It isn't even a valid program because it is just a snippet of the code.
I just reviewed your code. Looks like you are... but you are doing it wrong. You are adding a hook during every loop iteration (or maybe now in a timer). You only need to add a hook once. Also, add a Thread.sleep to your infinite while loop. (or I guess if you now have it in a timer, this may be taken care of)
Thanks for advice, gave me even less cpu\ram load and more stability!
This is what I've got
Code:... test4 listen = new test4(); GlobalScreen.addNativeKeyListener(listen); timer.schedule(new TimerTask() { @Override public void run() { if(hold){ try{ moveMouse(analysis(ss())[0],analysis(ss())[1]); } catch (Exception ex) { System.exit(1); } } } }, 8,8); ...
I'm glad people are learning how to program
Last edited by comic-1337; 07-30-2016 at 09:58 AM.
https://youtu.be/m9HBhfWgXjk
Just a quick demo I made while ago in c++. have improved it a lot by now (Smooth, stability, perf boost,...)
Last edited by davidvu98; 07-30-2016 at 02:54 PM.
check pms.