Re: [Sikuli-driver] [Question #269784]: copy text from text box
Question #269784 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269784 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 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 #269784]: copy text from text box
Question #269784 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269784 Status: Answered => Open yaya is still having a problem: Thank you for your answers. I want to use sikuli api, there is another solution included in sikuli api except type and App.getClipboard() ? -- 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 #269784]: copy text from text box
Question #269784 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269784 RaiMan proposed the following answer: @yana you have to decide which Sikuli you want to use. Currently you have https://code.google.com/p/sikuli-api/ here we are talking about SikuliX http://sikulix.com both are to some extent feature compatible, but the API's are totally different and cannot be mixed without problems. -- 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 #269784]: copy text from text box
Question #269784 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269784 Status: Open => Answered Eugene S proposed the following answer: SikuliX-2014 is a multi module project: https://github.com/RaiMan/SikuliX-2014 Clone it from there and choose the project you are interested in. -- 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 #269784]: copy text from text box
Question #269784 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269784 Status: Solved => Open yaya is still having a problem: The class Screen is in the sikuli script, without sikuli script it is not possible to use Screen because Screen in sikuli api is an interface and we can not instantiate an interface. I don't know how to add sikuli script in maven ... -- 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 #269784]: copy text from text box
Question #269784 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269784 Eugene S posted a new comment: I use Sikuli API maven project as well and it works fine for me. Just make sure that all the files has been downloaded. For example in Eclipse, I right click on the project and choose Update Maven Project. When you there, check the "Force Update of Snapshots/Releases" checkbox. -- 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 #269784]: copy text from text box
Question #269784 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269784 ouedghiri posted a new comment: I use sikuli in a maven project, and i have only sikuli api in my pom.xml. Now , i try to find a solution to add sikuli-script.jar on my maven project -- 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 #269784]: copy text from text box
Question #269784 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269784 Status: Answered => Solved ouedghiri confirmed that the question is solved: Thanks Eugene S, 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 #269784]: copy text from text box
Question #269784 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269784 Status: Open => Answered Eugene S proposed the following answer: You have to keep in mind that Sikuli doesn't care how do you call the type method. It will just simulate manual action on the currently active screen. So as long you have your cursor blinking in a certain field, it doesn't matter how you execute type. Now, if your problem with this line: Screen sc = new Screen(); that means something is wrong with Sikuli configuration. -- 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 #269784]: copy text from text box
Question #269784 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269784 Status: Answered => Open ouedghiri is still having a problem: I know, but it doesn't work. I want to copy a string from a text box in a specific region (The region where i click) Target textvalue=new ImageTarget(new File("text-value.PNG")); ScreenRegion s = new DesktopScreenRegion(); ScreenRegion sr= s.find(textvalue); Mouse mouse=new DesktopMouse(); mouse.click(sr.getCenter());==> it's here where i want to copy a text sr.type("a", KeyModifier.CTRL); ==> doesn't work (the method type(String,int) is undefined for the type object When I use Screen sc = new Screen(); i get an error : cannot instantiate the type Screen -- 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 #269784]: copy text from text box
Question #269784 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269784 Status: Open => Answered Eugene S proposed the following answer: Not sure how are you trying to execute "type" in your example. It can't be a standalone command. It must be attached to an appropriate class, Screen class for example. The following example worked well for me: @Test public void test3() { Screen sc = new Screen(); sc.type("a", KeyModifier.CTRL); sc.type("c", KeyModifier.CTRL); System.out.println(App.getClipboard()); } -- 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 #269784]: copy text from text box
Question #269784 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269784 Description changed to: Hello, I want to copy text from a text box, when I use type("a", KeyModifier.CTRL) I get an error : the function type can only get a string, and when i use keyboard the problem is the same . My code : Target textvalue=new ImageTarget(new File("text-value.PNG")); ScreenRegion s = new DesktopScreenRegion(); ScreenRegion sr= s.find(textvalue); Mouse mouse=new DesktopMouse(); mouse.click(sr.getCenter()); type("a", KeyModifier.CTRL); type("c", KeyModifier.CTRL); text=text = Env.getClipboard(); Thank you for your help YO -- 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 #269784]: copy text from text box
Question #269784 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269784 Description changed to: Hello, I want to copy text from a text box, when I use type("a", KeyModifier.CTRL) I get an error : the function type can only get a string, and when i use keyboard the problem is the same . My code : Target textvalue=new ImageTarget(new File("text-value.PNG")); ScreenRegion s = new DesktopScreenRegion(); ScreenRegion sr= s.find(textvalue); Mouse mouse=new DesktopMouse(); mouse.click(sr.getCenter()); type("a", KeyModifier.CTRL); type("c", KeyModifier.CTRL); text=Env.getClipboard(); Thank you for your help YO -- 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 #269784]: copy text from text box
Question #269784 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/269784 Description changed to: Hello, I want to copy text from a text box, when I use type("a", KeyModifier.CTRL) I get an error : the function type can only get a string, and when i use keyboard the problem is the same . My code : Target textvalue=new ImageTarget(new File("J:\\03_TRAVAIL\\Qualif\\YOB\\text-value.PNG")); ScreenRegion s = new DesktopScreenRegion(); ScreenRegion sr= s.find(textvalue); Mouse mouse=new DesktopMouse(); mouse.click(sr.getCenter()); type("a", KeyModifier.CTRL); type("c", KeyModifier.CTRL); text=text = Env.getClipboard(); Thank you for your help YO -- 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