Re: [Sikuli-driver] [Question #679594]: "vncStart" find image issue
Question #679594 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679594 Description changed to: Sorry for my English. Below my script: ## from sikuli import * from image import * scr = vncStart("192.168.124.149",5900,10,1000) sleep(2) scr. click(image_button) #screenshot = scr.capture() #screenshot.save("/tmp/") ## The image_button can't be found. When I use “scr.capture()“ to capture and save the screenshot, I found that the image was bad. There are many stripes on the picture. It's only 80Kb in size. Using the Linux screenshot command, the original image size should be about 2M How to set up VNC(vncStart) to use the original image? Siculix 1.1.4 OS Ubuntu 18.04 Thsnks -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #679594]: "vncStart" find image issue
New question #679594 on Sikuli: https://answers.launchpad.net/sikuli/+question/679594 Sorry for my English. Below my script: ## from sikuli import * from image import * scr = vncStart("192.168.124.149",5900,10,1000) sleep(2) scr. click(image_button) #screenshot = scr.capture() #screenshot.save("/tmp/") ## The image_button can't be found. When I use “scr.capture()“ to capture and save the screenshot, I found that the image was bad. There are many stripes on the picture. It's only 80Kb in size. Using the Linux screenshot command, the original image size should be about 2M How to set up VNC(vncStart) to use the original image? Thsnks -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #139475]: Sikuli X 1.0rc1 - How to get an exact match with click("String")?
Question #139475 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/139475 Ryan posted a new comment: In case anyone is curious about this: I am using the SNAPSHOT build from 2019-03-20. This feature seems like it is looking for an image file all the time - I can't seem to get it to recognize a string. I use this in my script: r.find("9") #just looking for the number 9 in the region 'r' The script always stops at this line saying "find: ImageMissing: 9" Unless there is some other way to designate a 'string' rather than an image file path. I tried double quotes, single quotes, and no quotes - all the same result -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #679402]: Response time
Question #679402 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679402 Status: Answered => Open Ivonne is still having a problem: Thanks for your reply RainMan I'm using SikuliX 1.1.3 and right, I'm using Java API as well. So, would you suggest me to use other versions? I'll try your idea to measure the elapsed time, I'll let you know the outcome. Ivonne -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #679532]: How to stop waiting in main script by observer handler
Question #679532 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679532 Status: Answered => Solved partosXP confirmed that the question is solved: "findany", hm... Nice idea, i'm not sure about it would resolve all my problems, but it's definitly better then others ways. Need more tests and may be some modify it, i have to work) Thank you very much, Raiman, its my first time when i asked for help about non-commercial soft and get answers so fast by developer, its amazing. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #679576]: functionality of App class is not working on Windows Server 2012 R2
Question #679576 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679576 Status: Answered => Solved Sahil Doshi confirmed that the question is solved: Thanks😊 I am marking it as solved -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #679576]: functionality of App class is not working on Windows Server 2012 R2
Question #679576 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679576 RaiMan proposed the following answer: no. use the tasklist command -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #679576]: functionality of App class is not working on Windows Server 2012 R2
Question #679576 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679576 Sahil Doshi posted a new comment: Any workaround for this? -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Bug 1821725] [NEW] Problem with button Take screenshot for Android
Public bug reported: Sikuli versions: 1.1.4 OS: Windows 10 X64 IDE: Jython IDE I connected to Bluestack Android via ADB. I'm trying to take a screenshot with the Take screenshot button in the IDE. The screen picture is displayed correctly. I can not select the region to capture the screenshot. A region is always selected (0, 0) - (X_click, Y_click). When you try to take a screenshot of your computer screen, the region is selected correctly. ** Affects: sikuli Importance: Undecided Status: New -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1821725 Title: Problem with button Take screenshot for Android Status in Sikuli: New Bug description: Sikuli versions: 1.1.4 OS: Windows 10 X64 IDE: Jython IDE I connected to Bluestack Android via ADB. I'm trying to take a screenshot with the Take screenshot button in the IDE. The screen picture is displayed correctly. I can not select the region to capture the screenshot. A region is always selected (0, 0) - (X_click, Y_click). When you try to take a screenshot of your computer screen, the region is selected correctly. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1821725/+subscriptions ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #679576]: functionality of App class is not working on Windows Server 2012 R2
Question #679576 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679576 Status: Open => Answered RaiMan proposed the following answer: not official API ;-) ... and apparently not working ... and hence not useable :-( -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #679576]: functionality of App class is not working on Windows Server 2012 R2
New question #679576 on Sikuli: https://answers.launchpad.net/sikuli/+question/679576 When I try to run App.listApps() following error is appeared [debug] Screen: initScreens: starting [debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment() [debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices() [debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0) [debug] Screen: Monitor 0: (0, 0) 1440 x 900 [debug] Screen: initScreens: ending [debug] RunTimeINIT: version: 1.1.4-SNAPSHOT build#: 225 (2019-03-07_10:14) [debug] RunTimeINIT: global init: entering as: API [debug] RunTimeINIT: runningAs: JAR (sikulixapi.jar) in: C:\workspace\SikuliTest\externalJAR [debug] RunTimeAPI: global init: leaving [debug] RunTimeAPI: initAPI: entering [debug] RunTimeAPI: initAPI: leaving [13843 debug] RunTimeAPI: addToWindowsSystemPath: added to systempath: C:\Users\Administrator\AppData\Roaming\Sikulix\SikulixLibs [13844 debug] RunTimeAPI: checkJavaUsrPath: added to ClassLoader.usrPaths [13845 debug] RunTimeAPI: libsExport: folder exists: C:\Users\Administrator\AppData\Roaming\Sikulix\SikulixLibs (1.1.4 - 201903071014) [13847 debug] RunTimeAPI: loadLib: WinUtil.dll (success) Exception in thread "main" java.lang.NullPointerException at org.sikuli.natives.WinUtil.getApps(WinUtil.java:426) at org.sikuli.script.App.listApps(App.java:387) at com.opshub.Test.main(Test.java:78) [16925 debug] RunTimeAPI: * final cleanup at System.exit() * -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #679317]: organising images and functions in different scripts in sikuli
Question #679317 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679317 Status: Open => Answered RaiMan proposed the following answer: not the solution from comment #6 -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #679532]: How to stop waiting in main script by observer handler
Question #679532 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679532 Status: Open => Answered RaiMan proposed the following answer: ok, then there are only 2 options left: --- make the loop in a batch file on commandline using the brute force method comment #6, check the returncode and repeat the scriptrun if appropriate --- integrate the continuation logic ito your workflow. with 1.1.4 there might be another option instaed of observing: findany https://sikulix-2014.readthedocs.io/en/latest/region.html#find-more-than-one-image-in-a-region-at-the-same-time you can pack it in a def: def checkImageAndError(image, errorImage, time): # time in seconds end = time.time() + time while time.time() < end: matches = findAny(image, error) if (len(matches) == 0): wait(3) continue if (len(matches == 1)): # one image found if matches[0].getIndex == 0: return matches[0] # good image else: return None # error image return None # both images found # ... and then instaed of wait("1.png",300) # use match = checkError("1.png", "error.png", 300) if not match: continue -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #679317]: organising images and functions in different scripts in sikuli
Question #679317 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679317 Status: Answered => Open Sreelekshmi is still having a problem: still have same issue from sikuli import* import os import sys imagePath="C:\\Tools\\Images.sikuli" addImagePath(os.path.join(imagePath, "Images.sikuli")) from Images import* reload(Images) def Launch_app(img): if exists(img,20): doubleClick(getLastMatch()) wait(MSLS_Window,15) Launch_app(icon) [error] script [ MSLS_Functions ] stopped with error in line 7 [error] NameError ( name 'Images' is not defined ) -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #679317]: organising images and functions in different scripts in sikuli
Question #679317 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679317 RaiMan proposed the following answer: ok, then: import os import sys from sikuli import* imagePath="C:\\Tools" if not imagePath in sys.path: sys.path.append(imagePath) from Images import* reload(Images) ... and (not sure) if ImagePath is not automatically added, additionally: addImagePath(os.path.join(imagePath, "Images.sikuli")) -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #679317]: organising images and functions in different scripts in sikuli
Question #679317 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679317 Sreelekshmi posted a new comment: I am using 1.0.1, cant upgrade the version as some dependency -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #679317]: organising images and functions in different scripts in sikuli
Question #679317 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/679317 RaiMan proposed the following answer: IMHO it must look like so: import os import sys from sikuli import* imagePath="C:\\Tools" addImportPath(imagePath) from Images import* #reload(Images) # not needed with 1.1.3+ anymore for .sikuli imports -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp