in reply to Re: Sending The key {ENTER} using WMSetText function in win32 module.
in thread Sending The key {ENTER} using WMSetText function in win32 module.

um, no , you linked the postmessage constant, which can be used with a hwnd which is not active

the guitest docs say  $set = WMSetText($hwnd,text) where $hwnd is the id of the window

Its not unlike hwndSendKeys

win32 is for real programmer -- there is nobody to help :D

  • Comment on Re^2: Sending The key {ENTER} using WMSetText function in win32 module.
  • Download Code

Replies are listed 'Best First'.
Re^3: Sending The key {ENTER} using WMSetText function in win32 module.
by marto (Cardinal) on Feb 13, 2014 at 12:02 UTC

    I'm sure OP would appreciate a short but complete example illustrating how this can be achieved. Thanks. Apologies, I've never found MSDN documentation to be great to use :)

        Ah, so simply:

        WMSetText($hwnd, "herp\r\nderp\r\n");

        which works works on a non active window. Thank you, I'd missed this in the docs.