Sikulix 1.1.0 Onchange-problem
I am trying to do the following:
find a menu, open it and using the onchange-event get the menu points using the text() function.
Unfortunately my code doesn't work as expected:
import org.sikuli.
Settings.
Settings.
TR.reset()
def changed(event):
print "something changed in ", event.region
for ch in event.changes:
r = getLastMatch()
menustring = r.text()
menustring = menustring.
print menustring.
onChange(500, changed)
observe(
try:
z = "Fenster"
match = findText(z)
match.
menu = match.getTarget()
menu.click()
pass
except FindFailed:
pass
wait(30)
stopObserver()
Does anyone have a clue what could be wrong?
Cheers!
Xenofon
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: