[SOS] about API
-
:doh:I'm using THE api(SendMessage or PostMessage) to send a custom message between 2 C# 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. help me ,please thanks contract me :enet2008@hotmail.com you are welcome to visit my blog
-
:doh:I'm using THE api(SendMessage or PostMessage) to send a custom message between 2 C# 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. help me ,please thanks contract me :enet2008@hotmail.com you are welcome to visit my blog
Using SendMessage API to control external app: have an external application that I need to be able to control. I've tried using SendKeys but due to the obvious limitations of this function the behavior is erratic. I know you can do this using the SendMessage API ( find the handle of the external application's window ,first ) ,but I'm not sure how to do it. can you provide the sameple code to me ,please? you are welcome to visit my blog
-
Using SendMessage API to control external app: have an external application that I need to be able to control. I've tried using SendKeys but due to the obvious limitations of this function the behavior is erratic. I know you can do this using the SendMessage API ( find the handle of the external application's window ,first ) ,but I'm not sure how to do it. can you provide the sameple code to me ,please? you are welcome to visit my blog
You'd be much better off using Remoting. You can't send a String in a message like this, only a pointer to where in memory it is. The problem is the memory from one application is not accessible to another without jumping through flaming hoops. But, here[^] is a thread that seems to have had some success at it. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
You'd be much better off using Remoting. You can't send a String in a message like this, only a pointer to where in memory it is. The problem is the memory from one application is not accessible to another without jumping through flaming hoops. But, here[^] is a thread that seems to have had some success at it. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
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