From: Straub, Peter (Peter) <straubp@op...> - 2002-07-08 16:09:06
does anyone know of a reliable way for two Win32::GUI
scripts to communicate with each other? They run as
My idea was to simply write data to a file and send a
notification of some kind to the other process
(concurrent accesses not being an issue here).
What came to my mind in the first place was to use
'PostMessage'. Using Win32::GuiTest I am able to retrieve
the adressee's window handle, but what message should
As far as I know there is no support for user defined
messages (at least I have no idea how to retrieve one).
I also tried Win32::GuiTest's SendKeys function to notify
a dummy window in the other application by simulating
keystrokes. This gradually turned out to be a real horror
because the receiving control must be the foreground
window in order for SendKeys to succeed and every box
popping up at the wrong time spoils the whole thing...
Could you please help with better ideas how to
TIA and Cheers,