sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #22772
Re: [Question #240806]: Threading issue in swing GUI with type()
Question #240806 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240806
Description changed to:
My code runs fine when executing just this method
http://pastebin.com/XPhZc0Zc
but when I try and call it from within a gui it falls over on
s.type(...)
Any help would be appreciated!
[log] App.open C:/Program Files (x86)/Mozilla Firefox/firefox.exe(4664)
[log] CLICK on L(642,529)@S(0)[0,0 1920x1080]
java.lang.IllegalThreadStateException: Cannot call method from the event dispatcher thread
at java.awt.Robot.checkNotDispatchThread(Unknown Source)
at java.awt.Robot.waitForIdle(Unknown Source)
at org.sikuli.script.RobotDesktop.mouseDown(RobotDesktop.java:76)
at org.sikuli.script.Region._click(Region.java:2320)
at org.sikuli.script.Region.click(Region.java:2198)
at org.sikuli.script.Region.keyin(Region.java:2718)
at org.sikuli.script.Region.type(Region.java:2678)
at tradefunctions.main(tradefunctions.java:18)
at GUI.actionPerformed(GUI.java:188)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
...
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.