Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This is for win32...
Does anyone know of a way to send window messages (specifically wm_user/wm_command/wm_copydata messages) to another window? I was hoping to be able to communicate with other processes that don't have any other way of communication so that I can control their operation. I've checked out every possible module and the best I could find was Win32::API (ack!) and I'm having problems with that.
Is Win32::API my only option or is there a module that handles Win32 window messages (IPC)?

Replies are listed 'Best First'.
RE: Windows Messaging (IPC) ...probably the wrong answer (kudra: expect.pm?)
by kudra (Vicar) on May 26, 2000 at 20:37 UTC
    Disclaimer: I don't know anything about windows. This is just a suggestion and it's probably not correct, but I figured I'd post it on the off-chance that it is.

    Expect.pm allows communication with other programs/processes. A description can be found at cpan. It would be used for something like having your program ftp a file (start ftp, expect 'username' and send the username, expect 'password' and send the password, etc).

    To quote: "Expect.pm is built to either spawn a process or take an existing filehandle and interact with it such that normally interactive tasks can be done without operator assistance. This concept makes more sense if you are already familiar with the versatile Tcl version of Expect."