Clicking on the object several times and reducing CPU usage

Asked by Laimis

Hi,

I have created the java application to increase the productivity and improve live situations in Ableton with mouse clicks and multiple key shortcuts controlling by MIDI controller.

I'm just thinking about these commands:

Env.getMouseLocation(x,y)
click((find(Pattern("XXX.png").similar(0.70))nearby(Location(x,y)))

If Sikuli clicks on the object the first time, maybe it's possible to do it much faster on the second time? I can store the nearby location to variable after the first click.

Will it improve the time? What is the best way to make Sikuli aware about the object location or where to start to look at on the screen? Can Sikuli stop searching with the first matched object on the screen? It will be great to know any suggestions.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
masuo (masuo-ohara) said :
#1

Can you help with this problem?

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

To post a message you must log in.