Sikuli : String in Location

Asked by charliedaps

HI all,

I need to change the location of the mouse each time.

So i have try

for POS in range (1, 25, 5)
     click(Location(150, str(POS)))

Have you somes ideas please ?

Thanks

Have a good day

Question information

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

Location function require numeric as parameter.
And POS variable is numeric.
So codes is simply, click(Location(150,POS)).

Revision history for this message
charliedaps (charliedaps) said :
#2

Thanks so much.

Revision history for this message
charliedaps (charliedaps) said :
#3

Thanks masuo, that solved my question.