Jump to content
Sign in to follow this  

Sendink keys to a console window

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")
    MsgBox(0, "", "No Keys sent")

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

Share this post

Link to post
Share on other sites

try sending it raw:

ControlSend("UltraEdit", "", "EditControl1", '12345 !"§$%',1)

it thinks you want to send ALT+" blah blah blah.

!a is ALT+A

raw version

!a is !a

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...