← Back to team overview

sikuli-driver team mailing list archive

[Question #245266]: [error] NameError (name 'onEvent' is not defined)

 

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

from the documentation ....

Note on performance: Normally all the region methods are used as reg.onAppear(PS), where reg is a region object. If written as onAppear(PS) it operates on the default screen being the implicit region in this case. Using region.onEvent() instead will restrict the search to the region’s rectangle and speed up processing, if region is significantly smaller than the whole screen.

since I am running a 5760x1080 'screen' I thought it wise to not use the entire for an OnAppear() observer.  When I try onEvent I get a name not defined.  How can I limit rectangle of interest on a onAppear or similar function? 

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