Can I get out of a Windows application through wine?

I am writing a python GUI for the loader in windows. Currently, I can somehow remove this application in order to download things from the website. I want to write a graphical interface that the bootloader calls, so that it is easier for me to use it.

So, for my GUI, an indication of progress is important. When the bootloader works using wine, if I move the cursor to the icon, it will display the progress in percent. This is the number I want for my code. So is it possible to somehow get this information through some sort of wine API?

+4
source share
1 answer

So, you control the Windows bootloader running in Wine. Is this bootloader graphical? This icon is in the window or what?

Assuming both options:

  • If your Python application runs initially in * nix (not Wine), the only sure way is to take a screenshot around the cursor and use optical character recognition to recognize the numbers in the image :-). This is due to the fact that under Wine, not every Windows window is an X11 window.
  • If you run your application on the Windows version of Python installed in Wine, you're in luck. Hints are just windows - you should be able to iterate over all the windows in the bootloader and get the contained text.
+1
source

Source: https://habr.com/ru/post/1468882/


All Articles