← Back to team overview

sikuli-driver team mailing list archive

[Bug 1238027] [NEW] Screen capture fails to create a selection

 

Public bug reported:

Hey Raimund,

I am frequently having a problem with the screen capture for the IDE.
The problem is that it does not seem to take the mouse events. I get to
the gray screen to select the area to capture, but it does not do the
selection (white rectangle with red lines). The only way out of the
screen capture is by pressing ESC.

I put a break point in OverlayCapturePrompt line 77 for the mouse
pressed event, and it is simply not called.

This does not happen every time, and so far I have not figured out how
to consistently reproduce this issue.

I also checked that in the class ButtonCapture on line 108 the ide
requests the focus after the prompt for the image selection.

                                p.prompt("Select an image");
				try {
					Thread.sleep(500);
				} catch (Exception e) {
				}
				if (delay != 0) {
					ide.setVisible(true);
				}				
				ide.requestFocus();

Couldn't this cause the events to not be triggered for the
OverlayCapturePrompt? as far as I know, the events will only be
generated for the element that currently has the focus.

** Affects: sikuli
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1238027

Title:
  Screen capture fails to create a selection

Status in Sikuli:
  New

Bug description:
  Hey Raimund,

  I am frequently having a problem with the screen capture for the IDE.
  The problem is that it does not seem to take the mouse events. I get
  to the gray screen to select the area to capture, but it does not do
  the selection (white rectangle with red lines). The only way out of
  the screen capture is by pressing ESC.

  I put a break point in OverlayCapturePrompt line 77 for the mouse
  pressed event, and it is simply not called.

  This does not happen every time, and so far I have not figured out how
  to consistently reproduce this issue.

  I also checked that in the class ButtonCapture on line 108 the ide
  requests the focus after the prompt for the image selection.

                                  p.prompt("Select an image");
  				try {
  					Thread.sleep(500);
  				} catch (Exception e) {
  				}
  				if (delay != 0) {
  					ide.setVisible(true);
  				}				
  				ide.requestFocus();

  Couldn't this cause the events to not be triggered for the
  OverlayCapturePrompt? as far as I know, the events will only be
  generated for the element that currently has the focus.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1238027/+subscriptions


Follow ups

References