Harusal Posted November 14, 2008 Share Posted November 14, 2008 how do i send keys to an unactive window? Link to comment Share on other sites More sharing options...
jvanegmond Posted November 14, 2008 Share Posted November 14, 2008 Try ControlSend. And use AutoIt Window Info. Run("notepad") WinWait("Untitled - Notepad") $hWnd = WinGetHandle("Untitled - Notepad") WinSetState($hWnd,"", @SW_MINIMIZE) ControlSend($hWnd,"", "Edit1", "OMG LULZ THIS WORKS") WinSetState($hWnd, "", @SW_RESTORE) github.com/jvanegmond Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now