Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
- internal static extern IntPtr GetFocus();
- IntPtr c = GetFocus();
- SendMessageW(c, 12, 0, "Test"); //Notice that 12 = WM_SETTEXT
Add Comment
Please, Sign In to add comment