← Back to team overview

sikuli-driver team mailing list archive

[Bug 1221627] Re: [request] want to be able to deal with mousepointer (status, current icon, ...)

 

** Summary changed:

- Unable to find mouse pointer when searching a region
+ [request] want to be able to deal with mousepointer (status, current icon, ...)

** Description changed:

+ ----- problem
+ in current implementation, when searching for images, the base image (a screenshot) does not contain the mouse pointer and hence cannot be searched for
+ 
+ -----------------------------------------------
+ 
  I am trying to do a match on an image of my mouse pointer. However it is
  never found when using wait(). In the script I am creating the mouse
  changes from a normal pointer to a pointer with an hourglass. I have
  managed to capture this image by using SnagIt, and my script moves the
  mouse pointer ( using hover() ) to a point on the screen where the
  background matches the background of my captured mouse image. However
  when I run my script and the mouse pointer changes from a normal mouse
  pointer to a busy mouse pointer (with an hourglass) Sikuli it not able
  to find it. I expect the mouse to be a visible part of the screen when
  searching. If it isn't, I would expect to be able to enable this
  functionality. For some applications it is the only way to see that the
  application is busy and / or has finished an operation.
  
  When I try to find the mouse pointer using a screen capture tool like
  SnagIt and then using the following code, I am able to find a match:
  
  f = Finder("mouse_pointer_zone.png")
  img = "busy_icon.png"
  f.find(img)
  while f.hasNext(): # loop as long there is a first and more matches
-         print "found: ", f.next() # access the next match in the row
+         print "found: ", f.next() # access the next match in the row
  
  print f.hasNext() # is False, because f is empty now
  f.destroy() # release the memory used by finder
  
  So it seems that the problem is localized to the Region.find() method.
  
  I'm using Sikuli 1.0.0 32-bit on Windows XP and Java 1.6.

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.1.0

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

Title:
  [request] want to be able to deal with mousepointer (status, current
  icon, ...)

Status in Sikuli:
  In Progress

Bug description:
  ----- problem
  in current implementation, when searching for images, the base image (a screenshot) does not contain the mouse pointer and hence cannot be searched for

  -----------------------------------------------

  I am trying to do a match on an image of my mouse pointer. However it
  is never found when using wait(). In the script I am creating the
  mouse changes from a normal pointer to a pointer with an hourglass. I
  have managed to capture this image by using SnagIt, and my script
  moves the mouse pointer ( using hover() ) to a point on the screen
  where the background matches the background of my captured mouse
  image. However when I run my script and the mouse pointer changes from
  a normal mouse pointer to a busy mouse pointer (with an hourglass)
  Sikuli it not able to find it. I expect the mouse to be a visible part
  of the screen when searching. If it isn't, I would expect to be able
  to enable this functionality. For some applications it is the only way
  to see that the application is busy and / or has finished an
  operation.

  When I try to find the mouse pointer using a screen capture tool like
  SnagIt and then using the following code, I am able to find a match:

  f = Finder("mouse_pointer_zone.png")
  img = "busy_icon.png"
  f.find(img)
  while f.hasNext(): # loop as long there is a first and more matches
          print "found: ", f.next() # access the next match in the row

  print f.hasNext() # is False, because f is empty now
  f.destroy() # release the memory used by finder

  So it seems that the problem is localized to the Region.find() method.

  I'm using Sikuli 1.0.0 32-bit on Windows XP and Java 1.6.

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


References