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

I have the following script:


def StopSikuliNow(event):
        event.region.stopObserver()
        popup(u"Die Sikuli Bildschirmüberwachung wurde beendet")
        
def FM_Fehler_Hung(event):
        event.region.stopObserver()
        click(Pattern("fmclose.png").targetOffset(-76,50))
        wait(10)
        doubleClick("timer.png")
        wait(10)
        observe(FOREVER, background=False)
        
def FM_Fehler_InUse(event):
        event.region.stopObserver()
        click(Pattern("meldungsende.png").targetOffset(121,0))

        wait(10)
        observe(FOREVER, background=False)

def FM_Fehler_AccessDenied(event):
        event.region.stopObserver()
        click(Pattern("1FileMakerPr.png").similar(0.60).targetOffset(130,43))
        wait(10)
        observe(FOREVER, background=False)
        
Settings.ObserveScanRate = 0.0333 # alle 30 Sekunden
onAppear("shutdown.png",StopSikuliNow)
onAppear("fmclose.png",FM_Fehler_Hung)
onAppear(Pattern("1FileMakerPr.png").similar(0.60).targetOffset(117,43), 
FM_Fehler_AccessDenied)
onAppear(Pattern("meldungsende.png").similar(0.40).targetOffset(137,-4), 
FM_Fehler_InUse)
observe(FOREVER, background=False)

The script runs when started manually with a bat file but produces memory leak 
errors from time to time. My idea was to stop/start it every 2 hours with the 
taskplaner.
I used the workaround (https://answers.launchpad.net/sikuli/+question/166785) 
and started Sikuli-IDE-w.bat and pasted my script path as parameter. (As 
described) The process (java32.exe) starts up but the script doesn´t do 
anything. I think it is the "input error" when started from the MMC; Any clues 
why the workaround doesn´t work? If anyone has a clue why there are memory 
leaks appearing - go ahaed; Sikuli is really new to me!
System: Win7Pro-64bit
Java 6 Update 38

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to