Jump to content
Sign in to follow this  
Kage

CMD and Controlsend

Recommended Posts

Kage

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
veronesi

Did you try this with WinActivate...?

Share this post


Link to post
Share on other sites
Kage

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.