get data from external program

Asked by geovanny rodriguez on 2020-01-20

 I want to get X,Y coordinates strait from a webpages CSS asynchronously (without reloading the page). I have a solution that will work so far. I installed greasemonkey and created a javascript script to get that data. The data is then sent to a Cpython program via flask. So far so good well, maybe there is an easier way but for now it will do. The thing is that I want that data sent to a sikuli program. The thing is that sikuli does the bulk of the work but there are some thins that need to be click on but doing it visually is too cumbersome. Sooo, is there a way to do this?

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

The problem is, that with SikuliX, we are based on Java.

This means, that most C-based Python solutions do not work with SikuliX.

The easiest solution always is to create a file with the information, that then is read in the SikuliX script.

The next option is some pipe solution (e.g. socket based communication).

The best would of course be a solution, that triggers the information grabbing from the script with a direkt return of information.

... but I do not have experiences in your setting.

Can you help with this problem?

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

To post a message you must log in.