pb after observeInBackgroud
This bug report was converted into a question: question #706339: pb after observeInBackgroud.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi
Win10 Pro last release, Sikuli ide 2.0.4
this is the script...
ErrComm Exists but sikuli don(t see it
it means that the script pass after print("1")
TeamV doesn't exist, it's ok, but...
it doesn't click on ErrComm... and don't print 2
it's happend in BueStacks...
def changeXX(event):
#RegEventXX
# while not exists(ErrComm): print("raté")
print("1")
while exists(okTeamV):
while exists(ErrComm):
while exists(Debloc): click(DeblocOk)
if not exists(ErrComm):
print("2")
# RegEventXX.
# imprévu
RegEventXX.
RegEventXX.
# fin imprévu
observeInBackground runs as a subtask.
hence your script has to continue with some non-action to let observe make its job
simplest: wait(FOREVER)
... but then you have to kill the script run.