Sign in to follow this  
Followers 0
Kage

CMD and Controlsend

3 posts in this topic

#1 ·  Posted (edited)

Hello,

i am trying to make a tool to send certain text to a Command Promt.

because all CMD's usually have same title i decided to use the "title" command in cmd, this changes the title of the window

but when i do this i cannot seem to have autoit control send to it.

i have made a video of it to show what i mean (im afraid u must watch it full screen and max quality to read the text in it :huh2: )

i hope someone understand what im trying to do and knows how to do this ^^

Cheers,

Kage

Edited by Kage

Share this post


Link to post
Share on other sites



Did you try this with WinActivate...?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Did you try this with WinActivate...?

the idea behind controlsend is that you dont have to activate the window right ?

and i think for some reason it doesnt recognize the name.

because whn i do WinHandleGet it doesn't get a handle either (but witthout renaming cmd it does)

Edit~~ found the solution, i blame microsoft :huh2:

Posted Image

as you can see when u change the title there are 2 spaces between administrator: and <title>

Edited by Kage

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  
Followers 0