# Send keyboard commands to a console program.

## Recommended Posts

I am writing an AutoIT script to launch a DOS based program, and I want to be able to send an ALT+Enter once the DOS window is open, to set it to full screen. The AutoIT script will be calling a batch file on a networked drive, to start the program.

Is there any way to do this? I've got the rest of the script up and working, except for this part. I've seen the posts for using stdin (don't think I've got that right)

I am using AutoIT v3.1.1, currently.

Thank you,

Jason A.

##### Share on other sites

Have you tryed Send?

##### Share on other sites

RunWait ("C:\path\to\batch\file.bat")
WinActivate ("Title of new window")
Send ("!{ENTER")

Not Tested

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

##### Share on other sites

Thank you, this worked. Forgot all about the send command....

Thanks again,

Jason A.

## Create an account

Register a new account

×

• Wiki

• Back

• Git