When using WM_SETTEXT you should be using it this way
VB Code:
  1. PostMessage hwnd1, WM_SETTEXT, 0&, "Text that needs to be sent"