maus festlegen

JavaForever

Mitglied
hi
ich weiß, dass man mit hilfe von java.awt.Robot.mouseMove(int x,int y) die mauspos. für java festlegen kann. aber sieht das dann auch der anwender???
???:L
Thx im voraus für eure antworten
 
auf meinem personalcomputer is kein java
programmiere immer auf nem anderen pc(den ich, wie man sich denken könnte, nicht zur hand habe)!
ich will einfach nur wissen: gehts o. gehts nicht!
 
Java:
int i = 1;
while (i<10) { 
   try { new Robot.mouseMove(300,300); }
   catch (AWTException e) {}
}
Und Spaß haben 😀

@TO: Ja, der Mauszeiger wird für den Anwender sichtbar bewegt.
 
eRaaaas beiträge waren voll hilfreich!! (vorsicht ironie!)

Tja wenn du die Doku gelesen hättest, wüsstest du a) was mouseMove oder Allgemein die Robot-Klasse macht und b) dass man das eben so direkt nicht sagen kann !

This class is used to generate native system input events for the purposes of test automation, self-running demos, and other applications where control of the mouse and keyboard is needed
[....]
Note that some platforms require special privileges or extensions to access low-level input control. If the current platform configuration does not allow input control, an AWTException will be thrown when trying to construct Robot objects. For example, X-Window systems will throw the exception if the XTEST 2.2 standard extension is not supported (or not enabled) by the X server.
 

Neue Themen


Zurück
Oben