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

RaiMan posted a new comment:
And this is my script to prevent screen saver or sleep mode.

off = 1
stop = False
setShowActions(True)
while True:
    current = Env.getMouseLocation()
    x = current.x
    for i in range(3):
        if stop: break
        hover(current)
        wait(6)
        if abs(Env.getMouseLocation().x-x) > 0: stop = True
    if stop: break
    off *= -1
    go = current.offset(off, 0)
    hover(go)

Moving the mouse shortly after the slow motion animation will stop the
script.

-- 
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     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to