Sign in to follow this  
Followers 0
Zompy

Send to a DOS

58 posts in this topic

How is it possible to send some keys to a DOS program?

Send ("Hello")

doesn't work

Share this post


Link to post
Share on other sites



Can you give an example? what program?


[u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

How is it possible to send some keys to a DOS program?

Send ("Hello")

doesn't work

If you send in the Command Prompt window everything works fine.

WinActivate('Command Prompt')
Send('Hello')

Which program do you send "Hello"?

Edited by Yashied

Share this post


Link to post
Share on other sites

Can you give an example? what program?

A program for the administartion.

As is aid send doesn't work, so don't psot that crap...

Share this post


Link to post
Share on other sites

A program for the administartion.

As is aid send doesn't work, so don't psot that crap...

Ehm if you are looking for help such post will not get it.


Giggity

Share this post


Link to post
Share on other sites

Ehm if you are looking for help such post will not get it.

What do you mean?

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Share this post


Link to post
Share on other sites

What do you mean?

He means don't be an ass if you want people to help you

[u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote]

Share this post


Link to post
Share on other sites

He means don't be an ass if you want people to help you

I rather think Yasier is being an ass, as i said Send doesn't work, and Hello is just an example...

And i heared it is possible.

Share this post


Link to post
Share on other sites

@Zompy

I don't think he was being an ass, I think he was saying that sending to the dos prompt works, that it has to be program specific as to why send is not working.

The problem with that is we don't have your program, and if we do we may not have experiance with it, so any information you can give on the program itself would be helpful


Giggity

Share this post


Link to post
Share on other sites

WinActivate("C:\WINDOWS\system32\cmd.exe")
Send("dir{enter}")

That works on my system to send to a DOS window...


[u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote]

Share this post


Link to post
Share on other sites

WinActivate("C:\WINDOWS\system32\cmd.exe")
Send("dir{enter}")

That works on my system to send to a DOS window...

That seems usefull, it does do enter, but how to send for example Hello?

Share this post


Link to post
Share on other sites

You are kidding ....right?

no... Send doesn't work, but with dir enter does work, so no, im not kidding. Im trying to find out how to send words

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

You contradict yourself which is causing confusion.

You say that Send("Dir{ENTER}") works but than you ask how to make Send() work?

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

so if you do

Send("dir{enter}") it works

but

Send("Hello{enter}") doesn't?


Giggity

Share this post


Link to post
Share on other sites

So the example from SpookMeister didn't send "dir"?

Indeed, only enetred work, it didn't send anything...

Share this post


Link to post
Share on other sites

I rather think Yasier is being an ass, as i said Send doesn't work, and Hello is just an example...

And i heared it is possible.

Why have you created this topic? Do you need help or you have a lot of extra time and you have nothing to do. If you want to get help, please describe the problem in more detail. If you want just wacky, then go to another place. People want to help you, and you as I see it is not necessary. What do you fuck brain people?

Share this post


Link to post
Share on other sites

Why have you created this topic? Do you need help or you have a lot of extra time and you have nothing to do. If you want to get help, please describe the problem in more detail. If you want just wacky, then go to another place. People want to help you, and you as I see it is not necessary. What do you fuck brain people?

What is your problem? I don't understand a shit of this DOS and i ask for help, and the only thing you do it saying use send while i said it doesn't work?!

I made this topic because i need help, and instead of complaining, you could say what details you need.

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