← Back to team overview

sikuli-driver team mailing list archive

Re: [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.