← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #270342]: How to stop sikuli instances running in background?

 

Question #270342 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/270342

masuo posted a new comment:
If you are satisfied with a following simple specification, It is
possible to achieve by addHotkey().

example 1:
Push Ctrl + F1
When Sikuli-ide is still running, it displays "Still runing".
When Sikuli is finished, it displays nothing.

Script for example 1:
def DisplayStatus(event):
    popup("Still running!", "Workflow Status")

Env.addHotkey(Key.F1, KEY_CTRL, DisplayStatus)

example 2:
Push Ctrl + F2
When Sikuli-ide is still running, it stops Sikuli-ide.

Script for example 2:
import sys
def StopSikuli(event):
    sys.exit()

Env.addHotkey(Key.F2, KEY_CTRL, StopSikuli)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.