#How do I allow this program to move the user mouse using mouseEvent and target a specific program?

3 messages · Page 1 of 1 (latest)

willow shadow
#

I tried to use the Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(event) function to post a mouse event to the computer queue. This is so that another program can pick up the input from the mouse. However, the program I'm trying to run it on does not accept mouseMove as input and only mouseEvent queues. I tried setting Component source = null; however that gives an error. I am out of ideas and can't figure out how the mouseEvent works in this case. Any help would be greatly appreciated :)

P.S. I kept the mouseMove function just as a representation for the cursor movement for debugging purposes

whole belfryBOT
#

This post has been reserved for your question.

Hey @willow shadow! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.