Jump to content

Send Key PAUSE to DOS Program


Recommended Posts

Hello,

to start a programm, running in au DOS Box, i've always got to enter PAUSE and the ENTER to get the graphical interface. There are no other ways to get there

Now I want to write an AutoIt Script. It opens the programm and then

Send("{PAUSE}")

Send("{ENTER}")

But he only sends ENTER, do you know a way to send PAUSE too, or is there no way to do that?

THanks

Link to comment
Share on other sites

Send only send Keys to Active windows

Try with ControlSend and Hwnd of DOS Windows which can send keys even if the windows is not active

ControlSend( hwnd,' ','{ENTER}')

this way also sends only the ENTER key, but PAUSE isn't sent again

an the window is always active

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...