Re: [Sikuli-driver] [Question #690084]: Sikulixapi-2.0.4 not working after creating a jar of my Java SWt desktop application
Question #690084 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690084 Kunal Deshpande posted a new comment: Another info I am executing my sikuli commands using Threads in Java. Hope it doesn't have any issue. Becuase it works fine in eclipse. -- 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 #690084]: Sikulixapi-2.0.4 not working after creating a jar of my Java SWt desktop application
Question #690084 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690084 Kunal Deshpande posted a new comment: I found that I have already added sikulixapi-2.0.4.jar in eclipse library while creating project. Does it still require to specify jar in classpath while executing jar via command line? If yes then its not working for me. Please sugges any alternative steps. -- 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 #690084]: Sikulixapi-2.0.4 not working after creating a jar of my Java SWt desktop application
Question #690084 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690084 Kunal Deshpande posted a new comment: --- Classpath issue taht you suggested above. Error: Could not find or load main class MyApp.jar # command used as suggested: java -classpath C:\dependency\lib\sikulixapi-2.0.4.jar MyApp.jar --- Trace after adding -Dsikuli.Debug=3 using command as java -jar -Dsikuli.Debug=3MyApp.jar since the above classpath command didn't work. [debug] RunTime:temp folder ok: C:\Users\KDeshpa\AppData\Local\Temp\1\Sikulix_1622327834 and when I navigate to it it the folder is empty. Below is my folder structure from where I am running jar file. MyApplication > images > # This is where images are stored for sikuli image1.png image2.png lib > sikulixapi-2.0.4.jar MyApp.jar -- 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 #689166]: SikulixIDE-2.0.3 won't type in Oracle VirtualBox VM
Question #689166 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689166 taylor james posted a new comment: Can any one set the problem by registration of the site https://thaiharempants.net/ I have the issue of buying thai pants. -- 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 #690034]: [2.0.x] Windows: App.open("cmd.exe /c .....") does not work as in 1.1.x --- workaround
Question #690034 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690034 Description changed to: - workaround see comment #1 -- enhancement bug: https://github.com/RaiMan/SikuliX1/issues/343 I need to start a windows 10 UWP app (installed via the microsoft store, e.g. Amazon Music) In sikulix 1.1.3 I started this app with AppAmazon = App.focus ("cmd.exe / c" start shell: AppsFolder \ AmazonMobileLLC.AmazonMusic_kc6t79cpj4tp0! AmazonMobileLLC.AmazonMusic "). with Sikulix 2.x the command does not work. I tried with App.open () and made several attempts with different paths without success. Any suggestions? Thanks in advance! -- 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 #690034]: [2.0.x] Windows: App.open("cmd.exe /c .....") does not work as in 1.1.x --- workaround
Question #690034 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690034 Summary changed to: [2.0.x] Windows: App.open("cmd.exe /c .") does not work as in 1.1.x --- workaround -- 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 #690034]: [2.0.x] Windows: App.open("cmd.exe /c .....") does not work as in 1.1.x --- workaround
Question #690034 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690034 Description changed to: - workaround see comment #1 I need to start a windows 10 UWP app (installed via the microsoft store, e.g. Amazon Music) In sikulix 1.1.3 I started this app with AppAmazon = App.focus ("cmd.exe / c" start shell: AppsFolder \ AmazonMobileLLC.AmazonMusic_kc6t79cpj4tp0! AmazonMobileLLC.AmazonMusic "). with Sikulix 2.x the command does not work. I tried with App.open () and made several attempts with different paths without success. Any suggestions? Thanks in advance! -- 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 #690034]: [2.0.x] Windows: App.open("cmd.exe /c .....") does not work as in 1.1.x
Question #690034 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690034 RaiMan posted a new comment: --- function to take the PID of the app opened in this way try with myApp = App.focus("significant part of the window title") -- 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 #690034]: [2.0.x] Windows: App.open("cmd.exe /c .....") does not work as in 1.1.x
Question #690034 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690034 Status: Answered => Solved ThinkClouds confirmed that the question is solved: Thanks RaiMan, that solved my question. -- 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 #690034]: [2.0.x] Windows: App.open("cmd.exe /c .....") does not work as in 1.1.x
Question #690034 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690034 ThinkClouds posted a new comment: Thanks RaiMan for the reply! The trick works and allows me to open the app. Great! :) Now I ask you if there is a function to take the PID of the app opened in this way. Thank you! -- 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 #690034]: [2.0.x] Windows: App.open("cmd.exe /c .....") does not work as in 1.1.x
Question #690034 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690034 Status: Open => Answered RaiMan proposed the following answer: The complete App handling on Windows has been revised with a focus on startable applications using there absolute path to the .exe and apps, that open windows at startup. The above variant does not work anymore. I will add a solution for those cases where you want to use the cmd.exe to do something. As a workaround try this: - pack the "start " into a .bat or .cmd - use App.open("youNameIt.cmd") -- 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 #690034]: [2.0.x] Windows: App.open("cmd.exe /c .....") does not work as in 1.1.x
Question #690034 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690034 Summary changed to: [2.0.x] Windows: App.open("cmd.exe /c .") does not work as in 1.1.x -- 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 #690084]: Sikulixapi-2.0.4 not working after creating a jar of my Java SWt desktop application
Question #690084 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690084 RaiMan proposed the following answer: --- classpath at runtime java -classpath C:\dependency\sikulixapi-2.0.4.jar myApp.jar --- trace You have several System.out.println in your code. So if you run your exported jar from commandline, there should be some printout. -- 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 #690084]: Sikulixapi-2.0.4 not working after creating a jar of my Java SWt desktop application
Question #690084 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690084 Kunal Deshpande posted a new comment: Is this the correct way if I specify jar file during runtime? javac –classpath C:\dependency\sikulixapi-2.0.4.jar MyApp.Java -- 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 #690084]: Sikulixapi-2.0.4 not working after creating a jar of my Java SWt desktop application
Question #690084 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690084 Kunal Deshpande posted a new comment: Okay I will paste the trace here. In classpath you mean in my application classpath in eclipse or one where jdk is installed on my machine? -- 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 #690078]: [2.1.0] SikuliX IDE does not work with JDK 14
Question #690078 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690078 RaiMan proposed the following answer: Be sure, that there is no other java/bin on the system path. run the IDE with java -jar /sikulixidejar -v -c from commandline. This suppresses the splash-screen at startup, which is the top of your stacktrace. More I cannot help you. You have to google for Java 14 problems. -- 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 #690084]: Sikulixapi-2.0.4 not working after creating a jar of my Java SWt desktop application
Question #690084 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690084 Status: Open => Answered RaiMan proposed the following answer: ok. What a bout the printout, when run from commandline? add -Dsikuli.Debug=3 to the java command. this should create some SikuliX debug output. ... and put the sikulixapi.jar on the classpath, to be sure it is there. -- 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 #690078]: [2.1.0] SikuliX IDE does not work with JDK 14
Question #690078 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690078 Nobunaga Oda posted a new comment: Hello. Thank you for your answer, RaiMan. Try again with the latest OpenJDK. It works fine in English version of Windows OS, so there may be something wrong with the settings of Japanese version of Windows OS. The following error was logged. --- T H R E A D --- Current thread (0x027070ddb000): JavaThread "main" [_thread_in_native, id=8884, stack(0x00c41cb0,0x00c41cc0)] Stack: [0x00c41cb0,0x00c41cc0], sp=0x00c41cbfef90, free space=1019k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [awt.dll+0x8f74a] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j sun.awt.windows.WComponentPeer._setFont(Ljava/awt/Font;)V+0 java.desktop@14 j sun.awt.windows.WComponentPeer.setFont(Ljava/awt/Font;)V+7 java.desktop@14 j sun.awt.windows.WWindowPeer.initialize()V+42 java.desktop@14 j sun.awt.windows.WFramePeer.initialize()V+1 java.desktop@14 j sun.awt.windows.WComponentPeer.(Ljava/awt/Component;)V+83 java.desktop@14 j sun.awt.windows.WCanvasPeer.(Ljava/awt/Component;)V+2 java.desktop@14 j sun.awt.windows.WPanelPeer.(Ljava/awt/Component;)V+2 java.desktop@14 j sun.awt.windows.WWindowPeer.(Ljava/awt/Window;)V+2 java.desktop@14 j sun.awt.windows.WFramePeer.(Ljava/awt/Frame;)V+2 java.desktop@14 j sun.awt.windows.WToolkit.createFrame(Ljava/awt/Frame;)Ljava/awt/peer/FramePeer;+5 java.desktop@14 j java.awt.Frame.addNotify()V+20 java.desktop@14 j java.awt.Window.pack()V+28 java.desktop@14 j org.sikuli.idesupport.IDESplash.init(Ljava/lang/String;Ljava/lang/String;)V+139 j org.sikuli.idesupport.IDESplash.(Ljava/lang/String;Ljava/lang/String;)V+7 j org.sikuli.ide.SikulixIDE.main([Ljava/lang/String;)V+91 v ~StubRoutines::call_stub siginfo: EXCEPTION_ACCESS_VIOLATION (0xc005), reading address 0x0058 -- 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 #690084]: Sikulixapi-2.0.4 not working after creating a jar of my Java SWt desktop application
Question #690084 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690084 Status: Needs information => Open Kunal Deshpande gave more information on the question: I am trying to create a desktop application using java which uses sikulixapi-2.0.4.jar. It works fine when I run the application in my eclipse IDE but when I create a runnable jar file (standalone desktop application using eclipse export option) for my desktop application the Sikuli doesn’t work e.g. the click, keypress and exists commands which were supposed to work doesn’t work when I create a runnable jar file. Can you please guide me so that Sikuli works in my desktop application once a runnable jar is created? -- 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 #187104]: Trying to sense when the screen stops changing
Question #187104 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/187104 Krishna Loyal posted a new comment: Added this but result is not the same import unittest import HTMLTestRunner class X(unittest.TestCase): changes = None https://fabulaes.com/elizabeth-lail/ https://fabulaes.com/ -- 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 #690050]: Sikuli 2.0.4 support for windows 2019 server 64 bit
Question #690050 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690050 RaiMan requested more information: HiDPI monitor or resolution not 100%? There are problems with Java 8. -- 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 #690078]: [2.1.0] SikuliX IDE does not work with JDK 14
Question #690078 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690078 Summary changed to: [2.1.0] SikuliX IDE does not work with JDK 14 -- 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 #690078]: [2.1.0] SikuliX IDE does not work
Question #690078 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690078 Status: Open => Answered RaiMan proposed the following answer: I am building the runnable jars with Java 13 latest in IntelliJ IDEA running on Windows 10-64 latest (german). I tried with Java 14.0.1 (latest) from commandline: works as expected. -- 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 #690084]: Sikulixapi-2.0.4 not working after creating a jar of my Java SWt desktop application
Question #690084 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/690084 Status: Open => Needs information RaiMan requested more information: Sorry, I do not understand your problem. The printout should show, what happens. -- 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 #690084]: Sikulixapi-2.0.4 not working after creating a jar of my Java SWt desktop application
New question #690084 on Sikuli: https://answers.launchpad.net/sikuli/+question/690084 Hi, I have add sikulixapi-2.0.4 jar in my project's build path as external jar and implemented the functionality which I required. Its is working fine as fas a considered running the application in eclipse IDE. But when I export it as jar sikuli doesn't work at all. As I tried to run my jar via commandline to se verbose it enters the loop in while I havw written Sikuli logic but never ever passes the condition and feels like goes in infinite loop nor gives any error. Also I don't think there might be any error in my code. Here is the code below. - Code starts @Override public String call() throws Exception { // ImagePath.add(System.getProperty("user.dir")); ImagePath.add(System.getProperty("user.dir") + File.separator + "images"); Screen screen = null; try { System.out.println("Starting screen capture..."); screen = new Screen(); while (true) { if (screen.exists(createFullPathOfPatternImages(OKAY_DIALOG_AFTER_EXECUTION)) != null) { System.out.println("Dialog loaded!"); screen.click(createFullPathOfPatternImages(SCRIPT_COMP_OKAY_BUTTON)); // Call captureAndSaveScreen function for capturing // and saving screenshot. captureAndSaveScreen(filePath, fileName); // Continue closing process. screen.click(createFullPathOfPatternImages(TOAD_TITLE)); screen.keyDown(Key.ALT); screen.keyDown(Key.F4); screen.keyUp(Key.ALT); screen.keyUp(Key.F4); break; } else { System.out.println("Waiting for dialog..."); screen.wait(createFullPathOfPatternImages(OKAY_DIALOG_AFTER_EXECUTION), 2.0); } } } catch (Exception ex) { ex.printStackTrace(); } return ""; } - Code Ends - I have implemented it as a thread to run when the image matches with my desktop application. Kindly help and suggest the steps required. I am new to Sikuli. Thanks -- 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 #689729]: Sikuli text recognition not returning correct text
Question #689729 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/689729 Status: Open => Expired Launchpad Janitor expired the question: This question was expired because it remained in the 'Open' state without activity for the last 15 days. -- 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