Observe on Change event exits script or brings up IDE and continues running
I got my original code from a launchpad answer. The code works great... once.
I have the code looping, after the first run:
if started headless (command line) it just exits.
if started in the IDE, the IDE opens up (As if it finsihed), but the script continues to run.
I have no idea what i've done.
def changed(event):
print "something changed in "
sleep(1)
Settings.
event.
doht()
def ht_level_change():
htlevelReg = Region(
print "Checking bigScreen Video Region"
r = htlevelReg
r.onChange(10, changed)
Settings.
Settings.
r.observe(300, background=True)
while Settings.isChanged == False:
type('5')
sleep(1.4)
# observing for 5 seconds (script pauses here)
def doht():
sleep(2)
ht_
doht()
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Chuck
- Solved:
- Last query:
- Last reply: