← Back to team overview

sikuli-driver team mailing list archive

[Question #269577]: Sikulix 1.1.0 handler return value

 

New question #269577 on Sikuli:
https://answers.launchpad.net/sikuli/+question/269577

I have the following problem: an onChange Event fires a handler that reads some text using OCR and puts this in a string variable.
I want to access this variable from outside the handler. Unfortunately this doesn't work as I thought it would:

def changed(event):
    menustring = event.getChanges()[0].text()
    return menustring

Any idea?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.