0
I am trying to send a enter command using c #, I can write in another process using this dll, but when I am trying to send the enter command is written the following "{ENTER}" ...
[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern string SendMessage(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam);
When I try to use a Postmessage nothing happens ..
public void SendMessage(string message, IntPtr WindowHandle)
{
foreach (char c in message)
{
int charValue = c;
IntPtr val = new IntPtr((Int32)c);
Win32.SendMessage(WindowHandle, WM_CHAR, val, new IntPtr(0));
}
}
Someone could help me?
Not just include n in the string?
– igventurelli
I tested here and nothing happens, nor write he writes, just ignores
– Herbert Junior
I’m still trying, someone might try to help me?
– Herbert Junior