sikuli

Sikuli Trouble with ImagePath (JAVA)

大兔子大兔子 提交于 2019-12-25 16:30:24
问题 I'm having a problem exporting a maven project in eclipse that uses the sikuli library. In eclipse everything works fine and the application runs great. I also have to note that I never used maven before (so I might do something "stupid"). The problem is that once exported, the application can't find the images I stored within the runnable jar. This is the error I got: https://drive.google.com/file/d/0BymG7-nABOfnTmR0NzdTXzlSU2M/view The images are stored in resources inside the sikuli map.

Sikuli Trouble with ImagePath (JAVA)

梦想与她 提交于 2019-12-25 16:30:15
问题 I'm having a problem exporting a maven project in eclipse that uses the sikuli library. In eclipse everything works fine and the application runs great. I also have to note that I never used maven before (so I might do something "stupid"). The problem is that once exported, the application can't find the images I stored within the runnable jar. This is the error I got: https://drive.google.com/file/d/0BymG7-nABOfnTmR0NzdTXzlSU2M/view The images are stored in resources inside the sikuli map.

KeyModifier.SHIFT not working in Sikuli

≯℡__Kan透↙ 提交于 2019-12-25 04:17:18
问题 I am new to Sikuli. I need to do Ctrl+Shift+Down in Sikuli. I have tried: type(Key.DOWN, KeyModifier.SHIFT + KeyModifier.CTRL) and type(Key.DOWN, KeyModifier.SHIFT|KeyModifier.CTRL) but none of them works.Both produce the same effect as pressing Ctrl+Down. Please help. 回答1: Due to some bug, Shift combinations do not work if NumLock is on. The solution I used was to toggle it using: type(Key.NUM_LOCK) I found the answer here: https://answers.launchpad.net/sikuli/+question/272223 回答2: How about

Special characters in Sikuli script

我是研究僧i 提交于 2019-12-25 04:08:01
问题 I am trying to use some French special characters with Sikuli, when I type this in the Sikuli IDE, App.open('C:\\à table\\app.exe') But I get this error : [log] App.open C:\Ã table\NDC.exe(0) [error] App.open failed: C:\Ã table\NDC.exe not found It seems that Sikuli doesn't handle utf-8 properly for the moment. All I could find in Google was the same problem with type() function and to use paste() instead, which uses the clipboard. Is there a workaround in the case of App.open ? Thanks a lot.

Sikuli with Selenium Grid integration

北慕城南 提交于 2019-12-24 11:36:37
问题 I have integrated Sikuli with Selenium web driver and it works fine on my local machine. Now I want to execute same scripts in remote machines. my scripts are usually sikuli based i.e. there is hardly any web automation. the whole project is for automating desktop application running on different remote machines. think of POS Systems running on retail store. 回答1: As you already know that sikuli is an image based automation which finds elements by checking the base image against the current

How to check variable type using “type” function in Sikuli

风格不统一 提交于 2019-12-24 00:58:27
问题 Sikuli has its own function type for typing. Is there any way to invoke python (jython) function type ? Module builtins can’t be imported. Of course I can use isinstance instead but I am just curious if it is possible to come outside Sikuli scope and invoke not “overridden”, python built-in type function. I use Sikuli r930. #import builtins #ImportError: No module named builtins findAll("1369036502514.png") matches = getLastMatches() print(isinstance(matches,Finder)) #returns TRUE type(

Sikuli - switching monitor and resolution invalidate the scripts

北城以北 提交于 2019-12-23 14:59:59
问题 I do switch often between my laptop screen and my external 24 inch monitor, and I did notice that if I take snapshots on my laptop, then if I run the script while connected to the 24 inch monitor, the test does not work correctly anymore. Same if I go the other way around, taking snapshots from the 24 inch monitor, and then run the test on the laptop monitor. I believe this is due to the different resolution of the image; is there a way to be "resolution independent" while running Sikuli ? I

IOError: [Errno 13] Permission denied

狂风中的少年 提交于 2019-12-23 02:56:05
问题 I'm getting a permission error when trying to save a screenshot from Sikuli under Windows. The code that's doing the capturing is: def CaptureScreenshot(self): resultsDirectory = os.path.join('C','08 May 2013 11 34','myname.png') screenshot = capture(self.screen) print(screenshot) shutil.move(screenshot,self.resultsDirectory) When I print the screenshot path returned by capture , I get D:\DOCUME~1\BUNNINGS\LOCALS~1\Temp\sikuli-scr-366782306192033926.png When I run the code, I get this error:

How to write java program in Sikuli?

可紊 提交于 2019-12-23 02:54:12
问题 I have recorded the GUI desktop application using SIKULI as below: App.open ("C:\\Program Files\\acd\\bin\\VPNClient.exe") sleep(1) type ("mganda1") sleep(1) click( ) //click OK I want to convert this script into Java. So I am trying as below: package com.arcot.test.vpn; import org.sikuli.script.*; public class AuthLogin { public static void main(String[] args) { Screen s = new Screen(); App myApp = new App("application-identifier") ; myApp.open ("C:\\Program Files\\acd\\bin\\VPNClient.exe");

In Sikuli, How to find and click a minimum of 3 identical images?

眉间皱痕 提交于 2019-12-23 02:09:07
问题 I'm trying to click no less than 3 of the same image, but with findAll() I am having difficulty with sikuli wanting to select only 1 image when I don't want it to select any if there is not 3 or more. if exists(Pattern("1474201252795.png").similar(0.95)): wait(1) for x in findAll(Pattern("1474201252795.png").similar(0.95)): click(x) 回答1: So just count the images first and check if the count is higher than 3. imageCount=0 images = [] # find all images and store them in a list to prevent