If you are talking about the Win32::GuiTest module (please be specific when posting, How do I post a question effectively?) SendKeys "Sends keystrokes to the active window as if typed at the keyboard", I added the empahsis to this quote. You can't use this to send keystrokes to windows which are not active.
The Win32::GuiTest method WMSetText is an interface to WM_SETTEXT, which also only sets the text of an active Window. This is not a perl or Win32::GuiTest specific thing. This is how the interface is designed.
Update: Please read the following conversation in the responses below. Thanks Anonymous Monk.
In reply to Re: Sending The key {ENTER} using WMSetText function in win32 module.
by marto
in thread Sending The key {ENTER} using WMSetText function in win32 module.
by pradeep,krishna
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |