Ask your own question, for FREE!
Computer Science 9 Online
OpenStudy (atlas):

Any Java coders here??

thomaster (thomaster):

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

OpenStudy (atlas):

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?

thomaster (thomaster):

Alright, I can't help you with this but I'm sure someone with java knowledge will help you soon.

OpenStudy (atlas):

Thank you @thomaster . I will be waiting.

OpenStudy (e.mccormick):

C++ and Python for me.... dumbsearch2 is JavaScript, HTML, CSS and their end result: HTML5.

thomaster (thomaster):

@e.mccormick Hmm oke You're very active in this section, do you know java coders?

OpenStudy (e.mccormick):

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.

OpenStudy (atlas):

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();} }

OpenStudy (atlas):

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.

OpenStudy (anonymous):

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.

OpenStudy (atlas):

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.

OpenStudy (anonymous):

I'm in Java, but I'm just a beginner. I'm willing to help if I could. :))

OpenStudy (atlas):

Yeah sure. I got the work done this time. Maybe next time :) Thanks for the reply

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!