Is it possible let SikuliX work a list of numbers?

Asked by Stephan Timmers

Hi,

My idea is to let SikuliX:
> start at a point
> fill in first number on a list (excel, screenshot, manual input at start of macro, i dont care)
> complete entire macro
> end at starting point
> fill in next number (excel, screenshot, manual input at start of macro, i dont care)

Is this possible?
So example:

List of numbers:
1000
1499
2377

Start at Word:
Copy and paste the first number on the list (1000)
Delete the number
Copy and paste the second number on the list (1499)
Delete the number
Copy and paste the third number on the list (2377)
Delete the number

I would be very thankfull if this forum turns out to be of true help :D
Thanks in advance.
Greatings,
Stephan

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
tranquillo
Solved:
Last query:
Last reply:
Revision history for this message
Karl (k-d) said :
#1

Yes, Sikuli can do this. You have three options to program loops in Sikuli: Python, JavaScript, and Ruby.

Revision history for this message
Stephan Timmers (stephan-timmers-1991) said :
#2

Thanks but this stil leaves me clueless how to insert that piece of code.
As I dont know how to write it
Op do 21 apr. 2016 om 20:22 schreef Karl <
<email address hidden>>

> Your question #291727 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/291727
>
> Status: Open => Answered
>
> Karl proposed the following answer:
> Yes, Sikuli can do this. You have three options to program loops in
> Sikuli: Python, JavaScript, and Ruby.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/sikuli/+question/291727/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/sikuli/+question/291727
>
> You received this question notification because you asked the question.
>

Revision history for this message
Karl (k-d) said :
#3

You must first pick your scripting language, then you need to start working on something. We can't help with psuedocode.

Revision history for this message
Best tranquillo (rob-tranquillo) said :
#4

I would do this in python by using die csv module. You have to export your list to csv at first.

http://stackoverflow.com/questions/24662571/python-import-csv-to-list

Revision history for this message
Stephan Timmers (stephan-timmers-1991) said :
#5

Thanks alot, my apologies for not pre-writing a piece of script guys. First time here.
I will try to use this and if i fail i will come with my written script to support my question.

Revision history for this message
RaiMan (raimund-hocke) said :
#6

using the module xlrd (bundled with SikuliX 1.1.x) you can directly access Excel sheets.
see faq 2208

Revision history for this message
Stephan Timmers (stephan-timmers-1991) said :
#7

Amazing! I love using this program! :D

On Fri, Apr 22, 2016 at 9:47 AM, RaiMan <
<email address hidden>> wrote:

> Your question #291727 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/291727
>
> RaiMan posted a new comment:
> using the module xlrd (bundled with SikuliX 1.1.x) you can directly access
> Excel sheets.
> see faq 2208
>
> --
> You received this question notification because you asked the question.
>

--
Met vriendelijke groet,

Stephan Timmers