Jump to content

Recommended Posts

Posted (edited)

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
Posted (edited)

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.

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
×
×
  • Create New...