sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #33958
[Question #269784]: copy text from text box
New question #269784 on Sikuli:
https://answers.launchpad.net/sikuli/+question/269784
Hello,
I want to copy text for 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.