click slowly

Asked by felipe cavalcante

Hi
I have a problem to generate a script.
I put it to work in a program, and the program does not accept the click, just move the mouse to click area. I suppose the click has to be more time consuming or even stronger to work. Any advice?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Roman Podolyan
Solved:
Last query:
Last reply:
Revision history for this message
Best Roman Podolyan (podolyan-roman) said :
#1

If you want longer press, you may try to use hover() instead of click, than mouseDown() and mouseUp() and some wait() between them.

http://doc.sikuli.org/region.html#low-level-mouse-and-keyboard-actions

Also, sometimes it takes some time to prepare some buttons to accept the click, so first you can just put some wait() before the click() and see if it works.

Revision history for this message
felipe cavalcante (felipel-2-0) said :
#2

Thanks Roman Podolyan, that solved my question.