[error] NameError (name 'onEvent' is not defined)
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?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Ray Bobak for more information if necessary.