← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #695115]: I'm trying to getCell but having trouble

 

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

    Status: Open => Answered

masuo proposed the following answer:
A defined region by Region  feature is not visible.
It's the same as that.
Use highlight feature If you want to conferm divided row, col and cell.

[example]
r=Region(222,138,1080,395)
MAXROWS=3
MAXCOLUMNS=3

r.setRows(MAXROWS)
for row in range(MAXROWS):
    r.getRow(row).highlight(1)

r.setCols(MAXCOLUMNS)
for col in range(MAXCOLUMNS):
    r.getCol(col).highlight(1)   

r.setRaster(MAXROWS,MAXCOLUMNS)
for row in range(MAXROWS):
    for col in range(MAXCOLUMNS):
        r.getCell(row,col).highlight(1)

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