Hi
According to the example in the help of the ConsoleRead() command, I can send a strings using "pipes" from one process to another.
well, I have think to send an window handler "hwnd" from one autoit program, to another autoit compiled program, so that the receiving program can handle the same window by directly using the hwnd handler. But unfortunately my tests have not worked:
here is my simple test:
From the main script I send the window handler of the target window:
And this is the program that receive the handle
(modified from the example in the help of the ConsoleRead())
; Compile this script to "ConsoleRead.exe". ; Open a command prompt to the directory where ConsoleRead.exe resides. ; Type the following on the command line: ; echo Hello! | ConsoleRead.exe ; ; When invoked in a console window, the above command echos the text "Hello!" ; but instead of dispalying it, the | tells the console to pipe it to the STDIN stream ; of the ConsoleRead.exe process. #include <IE.au3> Local $data $oIE2.navigate("http://www.autoitscript.com/")
When I run the main script, the handler is sent to the consoleread.exe that correctly opens the msgbox (line 33) showing the correct handle,
but then I get this -> Error: Variable must be of type 'Object".
What am I doing wrong?