-
Member
Very good guide
would give rep if i could. gonna check this out for educational purposes since i am currently studying java atm in school. in the prosess of makeing a checkers game so will try to post it when i finish that.
-
Active Member
In need of a little bit of help, How would you go about searching an image for a certain colour?
Thanks
-
Member
I tried to use the robot class to click outside the JFrame I created, but the clicks arent registered outside the JFrame, so I cant make the bot...
-
Nice 4 year thread bump lols, you should create a new thread really.
-
Member
Thanks to Molleren, whappit and frikos, I created could create an Opensource Project https://github.com/sudogooglex/ClickRecorder
I used some of your code to create my generic class here https://github.com/sudogooglex/Click.../main/java/Bot
You can see mouse methods here https://github.com/sudogooglex/Click.../Position.java
I created a new Class to use all Keyboard methods https://github.com/sudogooglex/Click.../Keyboard.java
I used stackoverflow for public void type(char character). Thanks to this class you can type text strings.
You can use it like this :
Checkout the whole project if you want : it will create a generic csv file with custom rules like 1) move mouse to (x, y). 2) wait. 3) Type "string". 4) Scroll Mouse.
I used it for a game and it works, even on my two screens. However, it doesn't implement now any image detection but I created a method to get the pixel under the mouse.
-
Post Thanks / Like - 1 Thanks
Ket (1 members gave Thanks to botMaker for this useful post)