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

Win32::GuiTest::Examples -- its got WMGetText examples, which is just like WMSetText, one letter difference :)
  • Comment on Re^4: Sending The key {ENTER} using WMSetText function in win32 module.

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

    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.