Sikuli code in Sikuli-IDE doesn't appear
I start the program in Sikuli-IDE, it does what it supposed to do. I press the ctrl-F12 to end the program and the program stops as expected, sadly the code window Sikuli doesn't appear until I quit and restart Sikuli. I tried also with break-key (ctrl-cmd-C) and same result. All the menus of Sikuli are available, yet they do not do anything, and the code window doesn't display until Sikuli is restarted.
Sometimes it crashes after I press a menu of Sikuli (after the code execution is terminated and Sikuli doesn't reappear). I haven't been able to determine what makes that every so often it crashes.
Sometimes the menus are not available at all (except the Sikuli one) after the code execution is terminated and Sikuli doesn't reappear. I haven't been able to determine what makes that every so often it becomes unresponsive and need to terminate the program.
Additionally, if I comment out the command wd.observe(), then I can start and end the code as expected, but not when it executes!
Sikuli 2.0.4
MacOS 11.1
This is my test code:
bs = App.focus(
global wd
wd = bs.window()
def breakHandler(
global loopctl
loopctl = False
def clickevent1(event):
global e1
global e2
print("Event1", event.getCount())
ar = event.getRegion()
ar.hover()
wait(2)
ar.
ar.
def clickevent2(event):
global e1
global e2
print("Event2", event.getCount())
ar = event.getRegion()
ar.hover()
wait(2)
ar.
ar.
global e1
global e2
e1 = wd.onAppear(
e2 = wd.onAppear(
Env.addHotkey(
wd.observe()
global loopctl
loopctl = True
while loopctl:
wait(1)
wd.stopObserver()
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: