sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07390
[Question #180648]: [Java]CapturePrompt problem
New question #180648 on Sikuli:
https://answers.launchpad.net/sikuli/+question/180648
Hi,
i'm trying use CapturePrompt in a java eclipse application but hang after select region.
My code:
Screen screen = new Screen();
CapturePrompt cp = new CapturePrompt(screen);
cp.prompt();
Region gray don't dissapear and i obtain this exception:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at org.sikuli.script.CapturePrompt.notifyObserver(CapturePrompt.java:44)
at org.sikuli.script.CapturePrompt$1.mouseReleased(CapturePrompt.java:197)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Window.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Any help? What's wrong?
Thanks
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.