|
Author |
Topic: using java.awt.Robot (Read 1565 times) |
|
benelek
|
using java.awt.Robot
« on: Apr 17th, 2003, 5:58am » |
|
i'd like to use the Robot class, but the AWTPermission exception is thrown when i try. does anybody know how to work around the whole permissions thing? i'm working on a java application for my own machine, so i think there should be a way to get around security restrictions. the idea is to combine a range of inputs (from different devices) as a basis for controlling the mouse position, and other mouse events. Java seems to have the capabilities for this, but as i said, the whole permissions thing is a problem. does java have the scope for this kind of project, or should i be working in another language? thanks, -jacob
|
|
|
|
pitaru
|
Re: using java.awt.Robot
« Reply #1 on: May 2nd, 2003, 8:56pm » |
|
This works on my machine (win2k)... setting the mouse position to 100x100 : ********************** void setup(){ size(200,200); } void loop(){ try { // Move the cursor Robot robot = new Robot(); robot.mouseMove(100, 100); } catch (AWTException e) { } } ****************
|
« Last Edit: May 2nd, 2003, 9:11pm by pitaru » |
|
|
|
|
|