I need to have my python program interact with another closed source program<\/a> . Specifically, I need the python program to be able to "push" the start button in order to tell the program to start collecting data, and to "push" the save button and tell it where to put the save file at a later time. This is so I can automate a complex series of operations, the data collection phase of which can only be controlled from this operating software (doing it manually involves a person sitting around doing nothing but pushing a repetitive series of buttons for 4-5 hours). I believe this should be possible, but I cannot figure out how to do it (made more complicated by the entire thing needing to run on a windows 2000 box, since the card being operated is on an ISA bus and can't physically be put into anything that can run a newer OS). Is there any way to do this?
"如果该程序没有API,则可以使用python直接控制鼠标。
Used Sikuli to detect the button positions and press them. It pushes the button inside a VNC window to the other machine. Wrote all the GUI controls in the Sikuli Script, then called the script from within python as a subprocess.
I have the same problem, start collecting data and save them to different files. You say that you solved the problem with Sikuli. Have you found any other way?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.