← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #162221]: [Java] Button class not defined - use integer values or Java constants instead

 

Question #162221 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/162221

Summary changed to:
[Java] Button class not defined - use integer values or Java constants instead

Description changed to:
*** workaround ***

If anyone is interested, the integer values are:
Button.LFET = 16
Button.RIGTH = 4
Button.MIDDLE = 8

or

from java.awt.event import InputEvent
for LEFT:     InputEvent.BUTTON1_MASK
for MIDDLE: InputEvent.BUTTON2_MASK
for RIGHT:   InputEvent.BUTTON3_MASK

---------------------------------------------------------

I need to use
mouseDown(Button.LEFT)
in Java
But I can't find the Button class. Does it exist?

Note: It's working by using the integer values directly (easily visible
in Python),

But still curious about the Button class.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.