← Back to team overview

sikuli-driver team mailing list archive

[Question #182257]: fail to stop a running *.skl

 

New question #182257 on Sikuli:
https://answers.launchpad.net/sikuli/+question/182257

I built a little function:

def clicker():
    n = 0
    while n < 1000:
        click("START.png")
        wait(1)
        click("START.png")
        n = n + 1
        wait(1)

and run the .sikuli containing it, just to try to stop the script using the function below, built according to the answer to the question  #172696, and the link given there (http://sikuli.org/docx/globals.html#listening-to-global-hotkeys) 
but no matter i type "F1 + ALT + CTRL" (see below), the script does not stop.
REMARK: I need to stop the script, *not* to quit Sikuli because i need to read what's written in "Message" (the tab next to "Test Trace", below the place where the script is written).

the function to stop the .sikuli containing the 'clicker' function:

def stopScript(event):
	quit(Clicker.sikuli)
	Env.addHotkey(Key.F1,KeyModifier.ALT+KeyModifier.CTRL, stopScript)


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