Jump to content

sending keystrokes to a command window?


 Share

Recommended Posts

has anyone sent keystrokes to a cmd window?

ControlSend("classname=ConsoleWindowClass", "", "ConsoleWindowClass", "a")

doesn't work...

though

WinActivate("classname=ConsoleWindowClass", "")
send("ny")
does. Any idea which control to send to?

nevermind, I figured it out, no control.

ControlSend("classname=ConsoleWindowClass", "", "", "a")

Thanks!

(hopefully this will help someone else at some time, posting it anyways.)

"I'm not even supposed to be here today!" -Dante (Hicks)

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...