Question #678057 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678057
Status: Open => Answered
RaiMan proposed the following answer:
--- capture( client, "Test.png" )
what screen should be captured is taken from the object, that the capture
command is issued against.
At script level all un-dotted methods are bound to the quasi-constant object
SCREEN, which is Screen(0) by default.
the first parameter (a region - client in your case) only say, which part of
the captured screen should be the result.
solution:
use
client.capture( client, "Test.png" )
or say
use(client)
capture( client, "Test.png" )
....
use()
all un-dotted commands between executing use(client) and executing use()
(resets to Screen(0)) are going to the VNC screen.
Not guaranteed, that it is reset in all possible cases. So be aware, since the
use(some-other-screen) sets the target screen for this IDE session.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp