sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35398
[Bug 1511117] Re: PNG image generated for find, exists, wait
** Changed in: sikuli
Status: New => Fix Committed
** Changed in: sikuli
Importance: Undecided => High
** Changed in: sikuli
Assignee: (unassigned) => RaiMan (raimund-hocke)
** Changed in: sikuli
Milestone: None => 1.1.1
** Summary changed:
- PNG image generated for find, exists, wait
+ [1.1.0] PNG image generated in bundle with undotted find, exists, wait
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1511117
Title:
[1.1.0] PNG image generated in bundle with undotted find, exists, wait
Status in Sikuli:
Fix Committed
Bug description:
Environment:
Windows 7
Java 1.7.0_51 64-bit
SikuliX 1.1.0 released on 2015-10-06
Installed with all options (1.1 2 3)
This is more of an annoyance than an issue, but when trying to open my
program, I need to make use of find("image.png") without an explicit
region. The documentation says that it is using the default screen
object. It seems like any call to find("image.png"), or
wait("image.png",FOREVER), or exists("image.png") on this default
screen region creates a ".png" screenshot file as soon as a match is
found. After I acquire a region using the Region(App("my-
program").window()) , then I can call reg.find("image.png") and no
more ".png" files are created. These files are of the form
"1446059987072.png", and they start to pile up in the same folder
where the script.py is located. Overall, the script itself has no
issues performing the functions and runs to completion without errors.
Is there a workaround or way to stop these .png files from being
created?
Sample script:
# Shortcut to open the program
type("h", Key.CTRL + Key.ALT)
# Wait until the menu bar appears
# When menu bar is found, a png file is created
# which is of a screenshot of the default screen
while not exists("..\\imgs\\menu_bar.png"):
sleep(1)
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1511117/+subscriptions
References