← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #680899]: how to recover from crashing of target application?

 

Question #680899 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680899

matteoa posted a new comment:
Hello Raiman,
yes, these two questions were related...In case for the findfailed nobody offered the solution I asked for another way to accomplish the same...
Let me add some maybe interesting detail: my script first starts an external VNC app (ultravnc) then takes the application region of the window as ROi for all the subsequent operations.
Just after having created the region vncReg the code is as follows:
appVNC= App(getParentFolder() + r'UltraVNC\vncviewer.exe')
if not appVNC.isRunning(0): appVNC.open(0)
appVNC.focus()
vncReg=appVNC.focusedWindow()
FindFailed.setHandler(HndlFindFailed)
setROI(vncReg.getX(),vncReg.getY(),vncReg.getW(),vncReg.getH())
use()  # reset the global SCREEN object to take over the handler setting
Thanks!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.