Jump to content

Sendink keys to a console window


piccaso
 Share

Recommended Posts

Try this one...

Run(@ComSpec & " /c title TestTitle & " & @ComSpec);Start Console Window with the Title 'TestTitle'
WinWait("TestTitle");Wait until it exists
If ControlSend("TestTitle", "", "", '12345 !"§$%',0) == 1 Then;send some keys...
    MsgBox(0, "", "Keys sent")
Else
    MsgBox(0, "", "No Keys sent")
EndIf

It should Send '12345 !"§$%' to the console window but in the console window '12345 2345' appears

am i doing something wrong?

Edit: It works when using send() but i need a way to send keys to a hidden window

Edited by piccaso
CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map
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...