[SOS] about API(SendMessage or PostMessage),help me ,please
-
I'm using THE api(SendMessage or PostMessage) to send a custom message between 2 VB.Net exe's. The called exe is subclassed to listen to the custom message. In the calling exe, I'm trying to pass a string in the 4th parameter. At this stage the 2nd exe is already running. The api call keeps crashing the 2nd exe. Can it be done across exe's or only within the same exe, thanks. thanks for your apply or provide sample code( the best :laugh ) you are welcome to visit my blog
-
I'm using THE api(SendMessage or PostMessage) to send a custom message between 2 VB.Net exe's. The called exe is subclassed to listen to the custom message. In the calling exe, I'm trying to pass a string in the 4th parameter. At this stage the 2nd exe is already running. The api call keeps crashing the 2nd exe. Can it be done across exe's or only within the same exe, thanks. thanks for your apply or provide sample code( the best :laugh ) you are welcome to visit my blog
I can do it now I can use FindWindow,GetWindow and SendMessage to send message to a notepad app,just like this: hWnd1 = FindWindow(null, "Untitled - Notepad"); hWnd2 = GetWindow(hWnd1, GW_CHILD); sText =this.textBox1.Text; SendMessage (hWnd2, WM_SETTEXT,sText.Length, sText); but I don't know how to excute a word app's dictate by another app,help me please ,thank you! you are welcome to visit my blog
-
I can do it now I can use FindWindow,GetWindow and SendMessage to send message to a notepad app,just like this: hWnd1 = FindWindow(null, "Untitled - Notepad"); hWnd2 = GetWindow(hWnd1, GW_CHILD); sText =this.textBox1.Text; SendMessage (hWnd2, WM_SETTEXT,sText.Length, sText); but I don't know how to excute a word app's dictate by another app,help me please ,thank you! you are welcome to visit my blog
You've managed to ask a completely different question from your original post. This technique won't work on Word the way you want. It'll set the titlebar text of the document window, not the text of the document. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome