Python Forum

Full Version: how to enter text in text box inside a program?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everybody,
First of all, this is my first project in python so be kind with me if I say some weirds things or don't understand everything you say, but I am willing to read and learn and practice.
That's said, lets go to the heart of my problem.
I am working on a raspberyPi to make a python script that will take a user input ( in that case a astronomical objetc name like m31 or m45 ) then the python script need to parse that input into a text box inside a 3rd party program. Basicaly, the script I am working on will show a list of astronomical object name on a 3.5" touch screen lcd, then according to what the user choose, it will need to take that variable and parse it to the appropriate text box inside the 3rd party program. That program already exist, it is called ekos ( inside kstar) for astronomical dome and picture acquisition automation. Upon startup, I can link a script file in python that will launch automaticaly.
I think in order to do that, I need to tell python where is the input box in that program before I can write a string in it.
But my question is how can I do that?
How can I tell python to write text inside that text box exactly?
Well thats is my first questions, lets start slowly I have many other things to find out, but I have some keywords in my mind to research my others question. For this particular scenario, I don't know a hint about where to start looking?

Thank you for your help.
Sorry If I say some things weird. Mayb my thinking is wrong and you can think of something simpler? I am open to suggestion.
The goal of my script is to remove the keyboard mouse and screen of the equation and launch the astronomical acquisition sequence on the push of a switch on a GPIO pin.