sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00165
Re: [Question #140390]: Delay between clicks after upgrading from Sikuli 0.10.2 to Sikuli-X
Question #140390 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/140390
Status: Open => Solved
Roman Podolyan confirmed that the question is solved:
The answer:
In Sikuli-X new settings variable regulating interval between clicks was
introduced
http://sikuli.org/trac/wiki/The%20Complete%20Guide%20To%20Sikuli%20X#MoveMouseDelay
MoveMouseDelay
As a standard behavior the time to move the mouse pointer from the
current location to the target location given by mouse actions is 1.0
second. During this time, the mouse pointer is moved continuosly with
decreasing speed to the target point. An additional benefit of this
behavior is, that it gives the active application some time to react on
the previous mouse action, since the e.g. click is simulated at the end
of the mouse movement.
Settings.MoveMouseDelay - control the time taken for mouse movement to a
target location by setting Settings.MoveMouseDelay to a decimal value
meaning seconds (default 1.0). Setting it to 0 will switch off any
animation (the mouse will "jump" to the target location).
Example:
=========
mmd = Settings.MoveMouseDelay # save default/actual value
click(image1) # implicitly wait 1 second before click
Settings.MoveMouseDelay = 3
click(image2) # give app 3 seconds time before clicking again
Settings.MoveMouseDelay = mmd # reset to original value
=========
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.