Obtaining values from a pool of data

Asked by Karthik Venugopal

Other than typing values directly using type(""),is there any way of typing the data after retreiving from a seperate Datapool.If so how do we connect to that datapool.

Final requirement is that value to be typed should not be hardcoded but should be retreivable from another source.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Karthik Venugopal (kvcoool) said :
#1

Please reply at the earliest.

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

… many., many of options.

the principal approach:
- read and evaluate the data source
- so variables contain the required data: some_var = <some content from data source>
- use type(some_var)

--- data sources can be (a basic selection):
- imported .sikuli
- simple text files (basic Python)
- files with special structure (CSV, XML, JSON, …) all have supporting available Python modules
- Excel files (faq 2208)
- databases accessible via JDBC
- … and more

The option selection mainly depends on, where the data comes from and how it is created/managed.

Be aware: this is a basic Python question (not really related to Sikuli aspects), so the chance is very high, to find related Python tutorials in the net, though some questions here are related to that topic already.

Revision history for this message
Karthik Venugopal (kvcoool) said :
#3

Thanks RaiMan, that solved my question.