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

Hi!

We have used the following script under Win XP without troubles, now Win7 64 is 
coming and we are stuck.
This is the sikuli script:

def StopSikuliNow(event):
        event.region.stopObserver()
        popup(u"Die Sikuli Bildschirmüberwachung wurde beendet")
        
def FM_Fehler_HostLost(event):
        event.region.stopObserver()
        click(Pattern("XFileMakerPr.png").targetOffset(125,43))
        closeApp("FileMaker Pro")
        wait(10)
        doubleClick("timer_icon.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.40).targetOffset(130,43))
        wait(10)
        observe(FOREVER, background=False)
        
Settings.ObserveScanRate = 0.0333 # alle 30 Sekunden
onAppear("shutdown.png",StopSikuliNow)
onAppear(Pattern("XFileMakerPr.png").similar(0.40).targetOffset(126,44), 
FM_Fehler_HostLost)
onAppear(Pattern("1FileMakerPr.png").targetOffset(117,43), 
FM_Fehler_AccessDenied)
onAppear(Pattern("meldungsende.png").similar(0.40).targetOffset(137,-4), 
FM_Fehler_InUse)
observe(FOREVER, background=False)

It starts up during system start using following command: "C:\Program Files 
(x86)\Sikuli X\Sikuli-IDE-w.bat" -r C:\SW_Installs\fm.sikuli

After about 1 Minute I get a message box and to cut it short it says : Can not 
find pattern "XFileMakerPr.png". similar......" and quits;
This particular image may appear from time to time and under Win XP sikuli 
reacted correct but now it just stops working and displaying this box. I want 
it to continue observing as written (forever). 
THX

-- 
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