Sign in to follow this  
Followers 0
cypher175

How can I send {Enter} to a hidden CMD window..?

4 posts in this topic

i need to send {Enter} to a hidden CMD.EXE window.. how can I do this..??

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

AutoItSetOption('WinTitleMatchMode',2)
WinActivate("cmd.exe")
WinWaitActive("cmd.exe")
Send("{ENTER}")

Edited by Andreik

When the words fail... music speaks

Share this post


Link to post
Share on other sites

You can also try using ECHO in the command prompt. Using 'echo. | command' will execute your command and then press enter. Useful for dos programs that require you to hit y or enter before continuing.

Type date in a command prompt then use echo. | date to see what I mean.


While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd

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  
Followers 0