Questions tagged [sikuli-ide]

Sikuli IDE is an Integrated Development Environment for sikuli script. It supports in Windows, Linux and Mac OS X.

Sikuli IDE is used for writing sikuli script by capturing/taking screenshot, inserting image and creating region. The commands are available/visible at the left panel in Sikuli IDE. They can be included in script just by clicking. The commands are categorized as below:

-> Find
-> Mouse Actions
-> Keyboard Actions
-> Event Observation

Sikuli IDE edits and runs Sikuli source scripts. Sikuli IDE integrates screen capturing and a custom text editor (SikuliPane) to optimize the usability of writing a Sikuli script. To show embedded images in the SikuliPane, all string literals that ends with ”.png” are replaced by a custom JButton object, ImageButton. If a user adjusts the image pattern’s similarity, a Pattern() is automatically constructed on top of the image.

To execute a Sikuli script, Sikuli IDE creates a org.python.util.PythonInterpreter and automatically passes a few lines of headers (e.g. to import Sikuli’s Jython modules, and to set the path to .sikuli directory) to the interpreter. Once these headers are set, the .py script is simply executed by PythonInterpreter.execfile().

89 questions
0
votes
1 answer

How can I create and run SikuliX scripts on MacOS?

I'm trying to use Sikuli on MacOS to do some automation. I've downloaded the SikuliX IDE 2.0.4 from here, and Jython 2.7.2 from here, and put the two of them in the same directory as per instructions in the docs. I'm running MacOS Catalina 10.15.7…
adamasan
  • 1,092
  • 1
  • 12
  • 33
0
votes
0 answers

Sikuli script stopping randomly

I have a simple SikuliX script that I'm using to automate some simple testing tasks on a game. The script is just a infinite while loop that makes some clicks and drag/drop some stuff on the screen. It runs normally but sometimes, for no reason…
Fnr
  • 2,096
  • 7
  • 41
  • 76
0
votes
1 answer

Input dialog 'select' doesn't work - Sikuli IDE 2.0.3

I'm using Sikuli IDE 2.0.3 on Windows 10. I'm writing the following script but nothing happends when I run it: items = ("nothing selected", "item1", "item2", "item3") selected = select(msg = "Please select an item from the list", title = "Año",…
0
votes
1 answer

Sikuli IDE Error - javax.script.ScriptException " is not defined in nashorn:mozilla_compat.js at line number 69

I'm working on a simple Sikuli Script. The script is simply one line shown below click() The following error is produced? javax.script.ScriptException: ReferenceError: "Commands" is not defined in nashorn:mozilla_compat.js at line number 69 I…
ffejrekaburb
  • 656
  • 1
  • 10
  • 35
0
votes
1 answer

Problems using pyd files on Sikuli IDE

I'm trying to use the pyodbc package on Sikuli IDE, but I'm running into some issues because it seems that Sikuli cannot identify pyd files. I placed the pyd file in the Sikulix\Lib folder, but when I try to import it, I keep getting the message…
user3175024
  • 41
  • 1
  • 1
  • 5
0
votes
2 answers

Why is the type() function not executed in this script?

I am new to Sikulix and I am running into a problem. I am trying to follow a tutorial, but the type() function does not seem to work. I am working on a windows 10 machine 64bit, with sikulix 1.1.3 IDE. Below is an image of my simple script in which…
Freeze
  • 237
  • 1
  • 5
  • 12
0
votes
1 answer

Is this the correct syntax for CMD Shift Down?

Is this the correct syntax for CMD + Shift + Down in Sikuli? type(keyDown, KeyModifier.CMD | KeyModifier.SHIFT) I've already tried the following but they don't seem to work: type(keyDown, KeyModifier.CMD + KeyModifier.SHIFT) type(KeyModifier.CMD,…
KRS77
  • 40
  • 1
  • 10
0
votes
1 answer

Using Sikuli Finder() to search screenshot with icon, providing cached like response when used in a loop

(Using Sikuli IDE -288 20/04/19 on Windows 10) I am currently having issues with a portion of code that runs correctly the first time around, but the second time where the function is looped instead of overwriting information created in the first…
0
votes
1 answer

Endless while loop and old removed code (popup)... well "popping up."

I'm struggling to troubleshoot a strange problem I've been having since starting to use Sikuli over multiple projects. I've been using the IDE and later tried to branch out due to having strange things happening with code. If I were to debug code…
0
votes
1 answer

I'm trying to implement two new commands but they are being ignored on my Sikuli script

I'm trying to add two new lines (the last "if exists" and "doubleClick") but they are not being recognized. This is the function I already have: def do(a, b, ab, abc, ef, efg): if not (exists(a, 0) and exists(ab, 0)): return …
dcbn
  • 29
  • 4
0
votes
1 answer

SikuliX IDE to use dotted characters

I use SikuliXIDE 1.1.4-SNAPSHOT with Ruby scripting and have strings, which contains following dotted characters: áéöüóőúű. I try to use paste() method to put it to a field. I found solution ALT key codes, but I don't know where these characters…
plaidshirt
  • 5,189
  • 19
  • 91
  • 181
0
votes
1 answer

importing python opencv library into sikuliX

I am trying to import the opencv library into sikuliX which uses Jython interpreter. I have added the path where cv2 module is installed to sys.path.append to tell Jython to look for cv2 folder in the path supplied. import sys…
calveeen
  • 621
  • 2
  • 10
  • 28
0
votes
1 answer

SikuliX IDE to fill more than one input field

I try to use SikuliX IDE to fill more than one input fields on the same screen. All the fields look like the same. I captured input field, click on it and use type to set value, but text is not present after that process.
plaidshirt
  • 5,189
  • 19
  • 91
  • 181
0
votes
1 answer

sikuliX cant find image

I am just learning to use SikuliX and for some reason it worked on a few attempts but after awhile it started to not detect the image that i want to click. This is the screenshot of my sikuli. Not sure what the error is about. I am using a mac so…
calveeen
  • 621
  • 2
  • 10
  • 28
0
votes
1 answer

Combine region and second screen function with Sikulix

I want Sikulix to search only in a certain region of my second screen. So far my knowledge comes down to having either a part of my first (main) screen like: topLeft = Location(reg.x, reg.y) Or the whole second screen like: regscreen2 = Screen(2) Is…
Alex S
  • 91
  • 10