sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #43771
[Bug 1705515] Re: [1.1.1 final] Screen().capture() does not return path --- use Screen().capture().getFile() or capture() in scripts
@Rainer Oehry
Sorry for the inconvenience.
Please read the revised bug header above.
In your scripts you either have to use (undotted)
capture()
or
Screen().capture().getFile()
to get a filename in temp storage.
** Summary changed:
- [1.1.1 final] Screen().capture() does not return path --- use Screen().capture().getFile()
+ [1.1.1 final] Screen().capture() does not return path --- use Screen().capture().getFile() or capture() in scripts
** Description changed:
**************** correct usage to get a filename in temp storage
Screen().capture().getFile()
+
+ or in a script use the undotted version as documented:
+ capture()
+
+ -- explanation:
+ The intended behaviour of the capture feature is to create an in-memory image in the first place (implemented at the Java level).
+ At the script level there is a convenience capture() (undotted usage, bound to the SCREEN object being), which returns the filename of the image stored in temp storage.
+
+ That in versions before 1.1.1 Screen().capture() returned a filename
+ instead of a ScreenImage object was a bug, that never was discovered.
-------------------------------------------
In 1.1.1 Screen().capture() returns
"org.sikuli.script.ScreenImage@4d1ab2e0
in 1.1.0 Screen().capture() returns
"...\AppData\Local\Temp\Sikulix_1083747527\sikuliximage-1500565358268.png"
Same script, just switching between 1.1.0 and 1.1.1 IDE
Windows 10 Pro Version 1703 64-Bit
Thanks
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1705515
Title:
[1.1.1 final] Screen().capture() does not return path --- use
Screen().capture().getFile() or capture() in scripts
Status in Sikuli:
Won't Fix
Bug description:
**************** correct usage to get a filename in temp storage
Screen().capture().getFile()
or in a script use the undotted version as documented:
capture()
-- explanation:
The intended behaviour of the capture feature is to create an in-memory image in the first place (implemented at the Java level).
At the script level there is a convenience capture() (undotted usage, bound to the SCREEN object being), which returns the filename of the image stored in temp storage.
That in versions before 1.1.1 Screen().capture() returned a filename
instead of a ScreenImage object was a bug, that never was discovered.
-------------------------------------------
In 1.1.1 Screen().capture() returns
"org.sikuli.script.ScreenImage@4d1ab2e0
in 1.1.0 Screen().capture() returns
"...\AppData\Local\Temp\Sikulix_1083747527\sikuliximage-1500565358268.png"
Same script, just switching between 1.1.0 and 1.1.1 IDE
Windows 10 Pro Version 1703 64-Bit
Thanks
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1705515/+subscriptions
References