sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03496
Re: [Question #162221]: [Java] Button class not defined - use integer values instead
Question #162221 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/162221
Status: Open => Answered
Calle Rundgren proposed the following answer:
There is a button class in java, but I do not think that is what you are looking for.
You are looking for a class in java who presses tha mouse button, right?
In case you are, check this link out:
http://download.oracle.com/javase/1.4.2/docs/api/java/awt/Robot.html#Robot()
It is the java robot class and can be used in order to simulate mouse
clicks using java.
For example I have been using this code in order to scroll teh mouse
wheel:
from java.awt import Robot
robot = Robot()
robot.mouseWheel(100)
tha button class in java is for creating buttons and then make different
task when the buttons is pressed.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.