sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35386
[Bug 1511117] [NEW] PNG image generated for find, exists, wait
Public bug reported:
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)
** 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/1511117
Title:
PNG image generated for find, exists, wait
Status in Sikuli:
New
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
Follow ups