← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #185791]: How to run "Sikuli On Virtual Machines"

 

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.