[Sikuli-driver] [Question #184138]: [Java] Reading a file on a network drive
New question #184138 on Sikuli: https://answers.launchpad.net/sikuli/+question/184138 I'm attempting to read a file I created on a network drive. The problem is that in Eclipse, I specified my path as: path = sever\\folder\\folder\\file.txt I get the following output: java.io.IOException: Failed to open file:server/folder/folder/file.txt. Error message: The parameter is incorrect. The code is use to open the file is as follows: public void OpenFile() { try { if (Desktop.isDesktopSupported()){ desktop = Desktop.getDesktop(); } desktop.open(new File(path)); } catch (IOException e) { System.out.println(File could not be opened); e.printStackTrace(); } } ReadTextFromFile rtff = new ReadTextFromFile(path); rtff.OpenFile(); -- You received this question notification because you are a member of Sikuli Drivers, which 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 #184138]: [Java] Reading a file on a network drive
Question #184138 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/184138 Status: Open = Answered RaiMan proposed the following answer: what about using: path = //server/folder/folder/file.txt -- You received this question notification because you are a member of Sikuli Drivers, which 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 #177654]: Stop a loop
Question #177654 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/177654 RaiMan posted a new comment: --- but i've not the Chrome's skin like in your script That might be, but then it should be easy, to replace the needed images in the script for your situation. --- The script would less complicated Sikuli script together with all the available Python modules and features has all the tools, to solve your problem. It is always a bit complicated, when you try to run a new tool. But pls. understand, that I cannot write your scripts. And I would never do it the way you suggested now, so I cannot help you. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #184132]: Take desired screen shot using java
Question #184132 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/184132 Status: Open = Answered RaiMan proposed the following answer: look through https://answers.launchpad.net/sikuli/+question/164161 and consult Sikuli's Java docs: http://sikuli.org/doc/java-x/ -- You received this question notification because you are a member of Sikuli Drivers, which 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 #184138]: [Java] Reading a file on a network drive
Question #184138 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/184138 Status: Answered = Solved Boipelo Mawasha confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #184141]: [Java] Opening a file that does not have an extension
New question #184141 on Sikuli: https://answers.launchpad.net/sikuli/+question/184141 Is it possible to open a file that has no extension by specifying the program that you want to use to open the file? E.g. open \\sever\\folder\\filename with notepad++ The file that I create is not saved with an extension. When I open it manually, I have to choose a program to open it with -- You received this question notification because you are a member of Sikuli Drivers, which 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 #184141]: [Java] Opening a file that does not have an extension
Question #184141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/184141 Status: Open = Answered RaiMan proposed the following answer: This should do what you want: import os dir = rC:\Users\Raimund Hocke # specify your own folder path = os.path.join(dir, some-file) os.popen('start notepad.exe %s'%(path)) -- You received this question notification because you are a member of Sikuli Drivers, which 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 #184141]: [Java] Opening a file that does not have an extension
Question #184141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/184141 RaiMan proposed the following answer: Uuups, it is Java that you requested, sorry ;-) Use the according features, to run the start command from within Java. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #184142]: How can i match my Screen Shot in exact way?
Question #184142 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/184142 Status: Open = Answered RaiMan proposed the following answer: You have to specify a matching score, to differentiate: btnChecked = Pattern(image-button-checked).similar(0.99) (more information: see docs) if exists(btnChecked): print checked else: print unchecked You can check/set your similar setting in the Preview window or use print find(some-image.png) to find out the matching score. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #184142]: How can i match my Screen Shot in exact way?
Question #184142 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/184142 Krishna posted a new comment: I think the solution in java is little bit different. Can you pls guide me in java? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #184141]: [Java] Opening a file that does not have an extension
Question #184141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/184141 Status: Answered = Open Boipelo Mawasha is still having a problem: I keep getting this error when I try the code out in Sikuli: [error] An error occurs at line 3 [error] Error message: SyntaxError: (mismatched character '\\n' expecting ''', Line 3 is: dir = rC:\test\ -- You received this question notification because you are a member of Sikuli Drivers, which 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 #184141]: [Java] Opening a file that does not have an extension
Question #184141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/184141 Boipelo Mawasha confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #184141]: [Java] Opening a file that does not have an extension
Question #184141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/184141 Status: Open = Solved Boipelo Mawasha confirmed that the question is solved: My bad. My typing is horrible. I'm sorted, thanks -- You received this question notification because you are a member of Sikuli Drivers, which 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 #184158]: [Java] Using methods from org.sikuli.script.OS; in java
New question #184158 on Sikuli: https://answers.launchpad.net/sikuli/+question/184158 I need to get access to methods from org.sikuli.script.OS; in Java. import org.sikuli.script.OS; //Field private OS myOS;. public void Test(){ tempString = filename; dir = server\\folder\\folder\\; path = os.path.join(dir, tempString); } I get an error when I try to use os.path.join Shouldn't I get access to all the methods in the class after I use the import statement? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #184158]: [Java] Using methods from org.sikuli.script.OS; in java
Question #184158 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/184158 Status: Open = Invalid RaiMan changed the question status: back to other question -- You received this question notification because you are a member of Sikuli Drivers, which 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 #184141]: [Java] Opening a file that does not have an extension
Question #184141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/184141 RaiMan posted a new comment: if you want to do this in Java, you have to use the Java methods to construct the correct path string. The final string for the start command in Java should print out like this: start notepad.exe \\sever\folder\filename It would be wise, to first check from a command line wether it does what you want. Then go back to Java, construct the command correctly and submit it from within Java. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #184165]: Need to performa click in server and thin client
New question #184165 on Sikuli: https://answers.launchpad.net/sikuli/+question/184165 Dear Sir, We have an Think client -server application . I have tried sikuli for the same and it is working in thin client . Imagine if i want to do some click in 2 thin client simultaneously and the result should be sent to server .Based on the result a click should happen in server. Is this possible using sikuli -- You received this question notification because you are a member of Sikuli Drivers, which 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 #184165]: Need to performa click in server and thin client
Question #184165 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/184165 Status: Open = Answered RaiMan proposed the following answer: Despite the possibility of using XML-RPC to communicate between Sikuli scripts running on different machines (faq https://answers.launchpad.net/sikuli/+faq/1331 and some related QA's), I guess you should set this up in plain Java based on some network based interprocess communication and integrate the needed Sikuli stuff then. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #182604]: [HowTo] Using a common folder for images with the IDE
Question #182604 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/182604 Status: Answered = Solved Brentmeister confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which 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 914020] [NEW] Silent failure when trying to take a screenshot through sikuli ide on windows 64 bit
Public bug reported: Steps: 1. Install Sikuli IDE on a Windows 64 bit OS referencing a 32-bit Java 7 exe 2. Start Sikuli IDE 3. Select Take Screenshot Expected: The screen should gray out as the tutorial shows, allowing me to take a screenshot of a particular part of my screen. Actual: Sikuli IDE closes and nothing happens. Trying to start sikuli IDE up again does nothing as well. Had to reinstall Sikuli IDE to be able to open the IDE again. ** 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/914020 Title: Silent failure when trying to take a screenshot through sikuli ide on windows 64 bit Status in Sikuli: New Bug description: Steps: 1. Install Sikuli IDE on a Windows 64 bit OS referencing a 32-bit Java 7 exe 2. Start Sikuli IDE 3. Select Take Screenshot Expected: The screen should gray out as the tutorial shows, allowing me to take a screenshot of a particular part of my screen. Actual: Sikuli IDE closes and nothing happens. Trying to start sikuli IDE up again does nothing as well. Had to reinstall Sikuli IDE to be able to open the IDE again. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/914020/+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
[Sikuli-driver] [Bug 914020] Re: Windows 64 bit: Java 7: IDE crashes on taking screenshot --- Java 7 not supported
** Summary changed: - Silent failure when trying to take a screenshot through sikuli ide on windows 64 bit + Windows 64 bit: Java 7: IDE crashes on taking screenshot --- Java 7 not supported ** Description changed: + * known problem + + Java 7 is not yet supported by Sikuli. Java 6 has to be used. + + --- + Steps: 1. Install Sikuli IDE on a Windows 64 bit OS referencing a 32-bit Java 7 exe 2. Start Sikuli IDE 3. Select Take Screenshot Expected: The screen should gray out as the tutorial shows, allowing me to take a screenshot of a particular part of my screen. Actual: Sikuli IDE closes and nothing happens. Trying to start sikuli IDE up again does nothing as well. Had to reinstall Sikuli IDE to be able to open the IDE again. ** Changed in: sikuli Status: New = Confirmed -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/914020 Title: X-1.0rc3: Windows 64 bit: Java 7: IDE crashes on taking screenshot --- Java 7 not supported Status in Sikuli: Confirmed Bug description: * known problem Java 7 is not yet supported by Sikuli. Java 6 has to be used. --- Steps: 1. Install Sikuli IDE on a Windows 64 bit OS referencing a 32-bit Java 7 exe 2. Start Sikuli IDE 3. Select Take Screenshot Expected: The screen should gray out as the tutorial shows, allowing me to take a screenshot of a particular part of my screen. Actual: Sikuli IDE closes and nothing happens. Trying to start sikuli IDE up again does nothing as well. Had to reinstall Sikuli IDE to be able to open the IDE again. To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/914020/+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 #182206]: Windows: Java 7: Exception in thread capture java.lang.StackOverflowError --- Sikuli needs JRE 6
Question #182206 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/182206 Linked to bug: #914020 https://bugs.launchpad.net/bugs/914020 X-1.0rc3: Windows 64 bit: Java 7: IDE crashes on taking screenshot --- Java 7 not supported -- You received this question notification because you are a member of Sikuli Drivers, which 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