(((((((How do I send a message!))))))
-
I would like to use Win API's SendMessage( wnd, WM_GETTEXTLENGTH, 0, 0 );, or PostMessage function to be able to get the text from the textbox of another program. Let's say, I would like to be able to get the text from Instant Messenger and show it in my App. Does anyone know how to do this! I'm doing it in C#, but I'm posting here because those functions are not C# native and you are more familiar with them than C# programmers.
-
I would like to use Win API's SendMessage( wnd, WM_GETTEXTLENGTH, 0, 0 );, or PostMessage function to be able to get the text from the textbox of another program. Let's say, I would like to be able to get the text from Instant Messenger and show it in my App. Does anyone know how to do this! I'm doing it in C#, but I'm posting here because those functions are not C# native and you are more familiar with them than C# programmers.
In C++, you only need to include the required head file and call the API. In other languages like VB/C#, you need to use P/Invoke. Read up on using P/Invoke with VB/C# and you should be able to figure out how to do it.