[1.1.0] Multiple Observers threading --- use observeInBackground()
Need help in making the below code work. What I'm trying to do is have two regions and simultaneously observing the two regions using threading for images and when they appear, popup stating the image appears
import thread
reg1 = Region(
reg2 = Region(
def findMario():
reg1.
reg1.
def findMushroom():
reg2.
reg2.
if __name__ == '__main__':
thread.
thread.
The scripts doesn't observer, the moment run is pressed, the script is stopped without any errors. If i observe the whole screen, the following message is displayed
[error] Region: observe: already running for this region. Only one allowed!
Much appreciated if someone can provide resolution
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: