interactively set target offset for an image using sikuliapi with jython

Asked by Akhil Ahuja

In sikuli ide, in click function if we click on the image, it opens another window where in target offset we can interactively set click position instead of clicking at center of image.

I have seen one example Check the Right Checkbox in which similar functionality is being used. I wonder what should be done to achieve same using jython and sikulixapi?

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
RaiMan (raimund-hocke) said :
#1

--- what should be done to achieve same using jython and sikulixapi
this is only available in the IDE.

Hence you can use the IDE to manage you script, but use the commandline and Jython to run it.

Revision history for this message
Akhil Ahuja (akhilahuja927) said :
#2

I know I'm asking too much, However can you please tell me atleast approach of implementing the same using jython and sikulixapi?
I'll write code by myself if at all i can.

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

the IDE GUI is written in Java:
https://github.com/RaiMan/SikuliX-2014

The function you are talking about is in:
https://github.com/RaiMan/SikuliX-2014/blob/develop/IDE/src/main/java/org/sikuli/ide/PatternWindow.java

Try to get it running standalone in a Jython environment.

Can you help with this problem?

Provide an answer of your own, or ask Akhil Ahuja for more information if necessary.

To post a message you must log in.