← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #267182]: TightVNC: click into VNC window does not work

 

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

RaiMan proposed the following answer:
At least as a quick fix I added these object methods to VNCScreen
(latest nightly 1.1.2):

// flag a Region Location as being on this VNCScreen
Region set(Region element) 
Location set(Location element) 


// get new Region/Location on this VNCScreen
Location newLocation(int x, int y) 
Location newLocation(Location loc) 

Region newRegion(int x, int y, int w, int h) 
Region newRegion(Location loc, int w, int h) 
Region newRegion(Region reg) 


so it now gets less ugly:
- no extra method needed

vnc.getRow(3, 4).getCol(1, 3).click()

write as:
vnc.set(vnc.getRow(3, 4).getCol(1, 3)).click()

Just watch the nightly 1.1.2 during the next time about VNCScreen
related fixes.

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