← Back to team overview

sikuli-driver team mailing list archive

[Bug 1511117] Re: [1.1.0] PNG image generated in bundle with undotted find, exists, wait

 

** Changed in: sikuli
       Status: Fix Committed => Fix Released

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

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

** Summary changed:

- [1.1.0] PNG image generated in bundle with undotted find, exists, wait
+ [1.1.0] PNG image generated in bundle with undotted find, exists, wait --- use 1.1.4+

-- 
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
  --- use 1.1.4+

Status in Sikuli:
  Fix Released

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