sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #33968
Re: [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.