Hi,
I want to know if it's possible to get a handle of a wine application running via a linux program (C++ or java) and control it (ie: scrape the windows screen, put some mouse events to the application etc...).
By example:
1) start a windows program via wine
2) start my linux app
3) my linux find the windows program handle
4) my linux app read the screen content
5) my linux app execute actions on the windows app via the mouse or keyboard based on the screen content.
That should be doable but I don't know where to start, is there some wine api or documentation or something ?
Thanks in advance
Blizz
Get a handle of a wine application and control it...
Get a handle of a wine application and control it...
On Wed, Mar 5, 2008 at 7:00 AM, Blizz <[email protected]> wrote:
an autohotkey script and run that from the linux program.
- Dan
There are probably many ways. One way might be to writeI want to know if it's possible to get a handle of a wine application
running via a linux program (C++ or java) and control it (ie: scrape
the windows screen, put some mouse events to the application etc...).
an autohotkey script and run that from the linux program.
- Dan
Re: Get a handle of a wine application and control it...
Wine does not really have it's own API - it's either win32api or POSIX. If you need a "window handle" - you have to run your program under Wine, as those handles exist inside Wine only.
You can do lots of things outside Wine as well. Just remember that Wine plays some tricks with X. Oh and Wine have only one big top level window for each .. window. Controls (buttons, text, etc) do not have their own X windows.
You can do lots of things outside Wine as well. Just remember that Wine plays some tricks with X. Oh and Wine have only one big top level window for each .. window. Controls (buttons, text, etc) do not have their own X windows.