How to select option from Right Click using Sikuli API

Asked by Apurv Agarwal

I am using Sikuli Java API to verify screens in a Eclipse Based Application. Now I am struck with Performing Right Click on a Task and Do a Right Mouse Click and select a Option

I have heard about Key Modifiers but how to use it I am not sure as I am still learning Sikuli.

Kindly suggest your ways

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Eugene S (shragovich) said :
#1

Hi,

The all key constants (including the key modifiers) are explained here:
http://doc.sikuli.org/keys.html

What exact are you trying to do? Use keymodifier WITH mouse click?

Revision history for this message
Apurv Agarwal (apurvagarwal) said :
#2

I tried using this code:
Screen scn = new Screen();
scn.rightclick("test.png");

But this is not performing Right Click.

Can you tell what is the problem in the code?

Revision history for this message
RaiMan (raimund-hocke) said :
#3

rightClick()

Can you help with this problem?

Provide an answer of your own, or ask Apurv Agarwal for more information if necessary.

To post a message you must log in.