← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #243428]: Click button in JAVA swing app to start sikuli

 

Question #243428 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/243428

RaiMan posted a new comment:
@ obiwan
dirty or not - at least interesting.
What is the trick, that avoids the swing exception?

BTW: I guess someFunction has to be called somewhere !?

… and I do not understand the while(1)

so formally this would be my version:

Boolean flag = false;

void someFunction() {
    if (flag == true) {
        // do your sikuli action
        flag = false;
    }
}

void actionPerformed(){
    flag = true;
    someFunction();
}

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.