I've seen questions about python launching a windows EXE file, but I need something a little different... I'd like to do it on a machine running Ubuntu.
I have a windows EXE which opens a window, allows me to choose a COM port and enter a filename, and then has a couple of buttons with which I can query a sensor on that COM port and write the output to a file. I need to automate this data gathering process, and would love to simply mimic the EXE's behavior with a python script on my MinnowBoard running Ubuntu 16.04 LTS, but the creator of the sensor won't share the protocol they use to talk to their sensor. The obvious protocols don't seem to work, so I'm left with their compiled executable.
Is there a way, in python on linux, to run the Windows executable, enter text into the filename field, and click some buttons in a particular sequence? Essentially, I'm looking for a generalized macro functionality INSIDE an emulator (like Wine?). The EXE can be operated via keypresses (a mouse isn't essential), if that makes a difference. Any thoughts would be helpful!