pleas help me I have this code. but when I send the command "start_service"
Appears as ؟؟؟؟؟؟؟؟؟؟؟؟؟ in PrincessAurora
and this is the code
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim process As Process
For Each process In process.GetProcessesByName("PrincessAuroraServer")
Dim p As IntPtr = Marshal.StringToHGlobalAuto("start_service")
Dim tmp As IntPtr = FindWindowEx(process.MainWindowHandle, IntPtr.Zero, "Edit", vbNullString)
Dim r As IntPtr = New IntPtr("start_service".Length)
SendMessage(tmp, WM_SETTEXT, p, r)
SendMessage(tmp, 258, 13, IntPtr.Zero)
Application.DoEvents()
Next
End Sub
|