hey mates,
need some help i know how to send keys:
but i want to send a string to the window i tryed :
but i wont work
if i send "test" i get "tt55" in my window :S
pls help
need some help i know how to send keys:
Code:
PostMessage(p.MainWindowHandle, WM_KEYDOWN, (int)Keys.A,1);
Code:
PostMessage(p.MainWindowHandle, WM_KEYUP, (int)Keys.A,1);
Code:
foreach (char item in text)
{
PostMessage(p.MainWindowHandle,WM_KEYDOWN,Convert.Int32(item), 1);
PostMessage(p.MainWindowHandle, WM_KEYUP, Convert.Int32(item), 1);
System.Threading.Thread.Sleep(10);
}
if i send "test" i get "tt55" in my window :S
pls help