How to make fast clicks --- use: Settings.ClickFast = True

Asked by Elia Jo on 2018-11-11

Hi,

First I think this is a great software and I love it.

I want to make a script that can click different positions very fast with up to 30-40 clicks per second. Is this possible?
I am using Mac OSX 10.12.6 with Sikuli version 1.1.2

I have searched and found no solution.

I am using the click() with Settings.MoveMouseDelay = 0 but this is too slow for me.

Here is my code:

Settings.ActionLogs = False
Settings.MoveMouseDelay = 0
Settings.DelayBeforeMouseDown = 0
Settings.DelayAfterDrag = 0
Settings.DelayBeforeDrag = 0
Settings.DelayBeforeDrop = 0
Settings.ClickDelay = 0
for j in range(40):

    click(Location(660, 360))

I am testing it on counter: https://valera-rozuvan.github.io/online-counter/

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2018-11-11
Last reply:
2018-11-18
RaiMan (raimund-hocke) said : #2

tried this on Mac:

Settings.ActionLogs = False
Settings.MoveMouseDelay = 0
Settings.ClickFast = True # not in the docs ;-)
loc = find("plus.png").getCenter()
end = time.time() + 1
while time.time() < end:
  click(loc)

... getting 96 clicks/second

RaiMan (raimund-hocke) said : #3

... might only be available with 1.1.3+ (did not check)

Can you help with this problem?

Provide an answer of your own, or ask Elia Jo for more information if necessary.

To post a message you must log in.