Jump to content
Sign in to follow this  

Help sending keystrokes to minimized window

Recommended Posts


I am working on typeing a few lines of text into a minimized window every so often, and I have a basic idea what needs to be done in order to do it, but not enough of and idea to make it work anyone help?

Share this post

Link to post
Share on other sites

You mean this?

Sends a string of characters to a control.

ControlSend ( "title", "text", controlID, "string" [, flag])

title The title of the window to access.

text The text of the window to access.

controlID The control to interact with. See Controls.

string String of characters to send to the control.

flag [optional] Changes how "keys" is processed:

flag = 0 (default), Text contains special characters like + to indicate SHIFT and {LEFT} to indicate left arrow.

flag = 1, keys are sent raw.

Return Value

Success: Returns 1.

Failure: Returns 0 if window/control is not found.


ControlSend works in a similar way to Send but it can send key strokes directly to a window, rather than just to the active window.


ControlCommand, Send


ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window")

P.S.: You can leave ControlID blank ("") if u want to send key to a game of so.

SciTE - much better than notepad. ; ]

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this