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

Bug #1221627 reported by Andrew Whalen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
Won't Fix
Medium
RaiMan

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.

RaiMan (raimund-hocke)
summary: - Unable to find mouse pointer when searching a region
+ [request] want to be able to deal with mousepointer (status, current
+ icon, ...)
description: updated
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
Revision history for this message
rob (reg82) wrote :

the ability to detect changes in the mouse pointer would be a wonderful tool for me as well.

RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 1.1.0 → 1.2.0
RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Won't Fix
milestone: 2.0.0 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.