Any Java coders here??
Many java coders here. I'm not good at java but I know for sure there are a lot around here. Maybe @e.mccormick or @dumbsearch2
I am basically an electronics student and am working on a project which requires to transmit x and y coordinates to a computer through hardware. The computer code should place the mouse to the given x and y co-ordinate. I have little exposure to java. Any help would be greatly appreciated?
Alright, I can't help you with this but I'm sure someone with java knowledge will help you soon.
Thank you @thomaster . I will be waiting.
C++ and Python for me.... dumbsearch2 is JavaScript, HTML, CSS and their end result: HTML5.
@e.mccormick Hmm oke You're very active in this section, do you know java coders?
I have seen a few. Not good with names... One of these times I should probably learn Java. I have looked at it, have the JDK and a few other things installed, but never got around to it.
import java.awt.*; import javax.swing.*; class Testing extends JFrame { Robot robot; public Testing() { changeMousePointer(); } public void changeMousePointer() { try { robot = new Robot(); robot.mouseMove(0,0); } catch(Exception e){e.printStackTrace();} } public static void main(String[] args){ new Testing();} }
Here I wrote a small program that can control the mouse pointer position. It works! But I am feeding the position directly here. I need to read the data from external device and feed it to my Java program.
you can use serial port or usb port to take input. both have different way to access them . I think this kind of programing is a little bit hard to do. at current situation .. I don't understand, is possible to read hardware directly java :( ..may be I'm wrong because i'm student , not an expert.
Neither am I. We'll find the solution soon. Someone wrote an API in java for USB communication -jUSB and JSR-80. I am going through it. It is difficult to understand though. Anyway thanks for taking the time.
I'm in Java, but I'm just a beginner. I'm willing to help if I could. :))
Yeah sure. I got the work done this time. Maybe next time :) Thanks for the reply
Join our real-time social learning platform and learn together with your friends!