← 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

    Status: Open => Answered

RaiMan proposed the following answer:
What I meant with GUI is the stuff running on the screen, which is what
swing is watching including input devices to create and dispatch the
events.

Your class GameReboot implements Runnable which is the first step.
But you have to dispatch the run() in a new thread.

What you are now doing is simply a call to the function RunProcess (BTW:
function names should start with lowercase characters), which runs in
the event dispatcher thread, which is not allowed for specific stuff,
that contain risks to block the event dispatching.

Look in the net after Thread.run() and implementations for that together
with actionPerformed callbacks.

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