← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #446764]: Use more than 3 mouse buttons

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Not a feature in the current SikuliX implementation.

... but you might try to implement it using the Java Robot class (used
by SikuliX internally).

the respective functions are 
java.awt.Robot::mousePress(buttonMask)
java.awt.Robot::mouseRelease(buttonMask)

In a SikuliX script you can say:

input java.awt.Robot as JR
robot = new JR()
robot.mousePress(integerValue) 
robot.mouseRelease(integerValue)   

consult the respective Java documentation for details.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.