sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #24006
Re: [Question #243428]: Click button in JAVA swing app to start sikuli
Question #243428 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/243428
obiwan-92 proposed the following answer:
@RaiMan
Nope. That's doesn't work.
Because when you're call someFunction, you're still in your event.
You can test it but you will find the same mistake.
The while(1) or while(true) is the loop who check during all your process if you have an event on the flag 'flag'.
My code work like this :
You check in coontinue if flag == true
actionPerformed is called -> you raise the flag to true.
you get out from actionPerformed, clear the event.
When you get in the next iteration of your loop, you will find flag = true
So you do your Sikuli action.
It's very dirty because you work in continue.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.