← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #689302]: How to set the screen of a new region

 

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

    Status: Answered => Open

Glenn Tanner is still having a problem:
It was more about quick values. I want to findText in a nearby region. I
dont see where copyTo is documented.

R = Region(M.x-20, M.y+100, M.w+100, M.h+50) # need to be on VNC screen OR Screen(n) which is saved in SUT['screen'] = SCREEN || vncStart.
R.findText("some value")

so would this work?

R = Region(M.x-20, M.y+100, M.w+100, M.h+50)
R.copyTo(vncScreen) # case 1
R.copyTo(SCREEN) # case 2
R.copyTo(Screen(2)) # case 3

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