pb after observeInBackgroud

Bug #1916361 reported by Eric BARROT

This bug report was converted into a question: question #706339: pb after observeInBackgroud.

6
This bug affects 1 person
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.stopObserver
   # while not exists(ErrComm): print("raté")
    print("1")
    while exists(okTeamV):
        click(okTeamV)
    while exists(ErrComm):
        click(ErrComm)
    while exists(Debloc): click(DeblocOk)
    if not exists(ErrComm):
        print("2")

  # RegEventXX.observeInBackground(FOREVER)

# imprévu
RegEventXX.onChange(5, changeXX)
RegEventXX.observeInBackground(FOREVER)
# fin imprévu

Revision history for this message
RaiMan (raimund-hocke) wrote :

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.

Changed in sikuli:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.