[SOS] about API(SendMessage or PostMessage)
-
:wtf: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. thanks for your apply or provide sample code( the best :laugh:) you are welcome to visit my blog
-
:wtf: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. thanks for your apply or provide sample code( the best :laugh:) 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
By trying using SendMessage API i got: C:\Projecti\test\Form1.cs(77): 'System.Windows.Forms.Control.SendMessage(int, int, int)' is inaccessible due to its protection level This API is from Platform SDK and i think it doesn't support in C#. To get handle, you can call GetActiveWindow or FindWindow
-
By trying using SendMessage API i got: C:\Projecti\test\Form1.cs(77): 'System.Windows.Forms.Control.SendMessage(int, int, int)' is inaccessible due to its protection level This API is from Platform SDK and i think it doesn't support in C#. To get handle, you can call GetActiveWindow or FindWindow
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