New question #439204 on Sikuli:
I would like to share a solution that allows one to capture the text from a
region using Mouse events.
reg = selectRegion() # dynamically define region
hover(reg) # by default focus is on center point of region
mouseMove(-120, -20) #refocus to upper left of region, numbers depend on region
mouseMove(240, 40) # highlights entire region
reg.type("c", KEY_CTRL) # copy highlighted text
value = Env.getClipboard()
print str(value) # prints contents of region
There may a more elegant solution; but this is at least one solution!
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 : firstname.lastname@example.org
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp