Guest User

Untitled

a guest
Jul 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
  2. internal static extern IntPtr GetFocus();
  3.  
  4. IntPtr c = GetFocus();
  5. SendMessageW(c, 12, 0, "Test"); //Notice that 12 = WM_SETTEXT
Add Comment
Please, Sign In to add comment