How to interact with the application under Wine using winedbg?

I ran my application under Wine ( wine my_app.exe ) and I would like to interact with it programmatically or from a script.

So, I run winedbg and join the process:

 $ winedbg Wine-dbg>info process 00000008 3 'terminal.exe' Wine-dbg>attach 8 0xf7709c0e __kernel_vsyscall+0xe in [vdso].so: int $0x80 

but I'm not sure what to do next?

Basically, I want to send some keyboard or mouse signals to my application (to select the checkbox and click the "Next" button).

Is this possible with a wine debugger?

My goal is to automate this process to install the application from a script without any user interaction. Or at least know how to do it.

I know that there is an xdotool tool that can easily enter mouse and keyboard input from the command line, however this is a bit buggy, so I would like to know how to do it from the debugger.

+5
source share

All Articles