Zompy Posted March 26, 2009 Posted March 26, 2009 How is it possible to send some keys to a DOS program? Send ("Hello") doesn't work
SpookMeister Posted March 26, 2009 Posted March 26, 2009 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]
Yashied Posted March 26, 2009 Posted March 26, 2009 (edited) How is it possible to send some keys to a DOS program? Send ("Hello") doesn't workIf you send in the Command Prompt window everything works fine. WinActivate('Command Prompt') Send('Hello') Which program do you send "Hello"? Edited March 26, 2009 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
Zompy Posted March 26, 2009 Author Posted March 26, 2009 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...
youknowwho4eva Posted March 26, 2009 Posted March 26, 2009 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
Zompy Posted March 26, 2009 Author Posted March 26, 2009 Ehm if you are looking for help such post will not get it.What do you mean?
Yashied Posted March 26, 2009 Posted March 26, 2009 (edited) If the Send() function does not work with your DOS-program means that it is impossible to do for this program. Edited March 26, 2009 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
SpookMeister Posted March 26, 2009 Posted March 26, 2009 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]
Zompy Posted March 26, 2009 Author Posted March 26, 2009 He means don't be an ass if you want people to help youI 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.
youknowwho4eva Posted March 26, 2009 Posted March 26, 2009 @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
SpookMeister Posted March 26, 2009 Posted March 26, 2009 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]
Zompy Posted March 26, 2009 Author Posted March 26, 2009 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?
Developers Jos Posted March 26, 2009 Developers Posted March 26, 2009 That seems usefull, it does do enter, but how to send for example Hello?You are kidding ....right? SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past.Â
Zompy Posted March 26, 2009 Author Posted March 26, 2009 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
Developers Jos Posted March 26, 2009 Developers Posted March 26, 2009 (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 March 26, 2009 by Jos SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past.Â
AdmiralAlkex Posted March 26, 2009 Posted March 26, 2009 no... Send doesn't work, but with dir enter does work, so no, im not kidding. Im trying to find out how to send wordsSo the example from SpookMeister didn't send "dir"? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
youknowwho4eva Posted March 26, 2009 Posted March 26, 2009 so if you do Send("dir{enter}") it works but Send("Hello{enter}") doesn't? Giggity
Zompy Posted March 26, 2009 Author Posted March 26, 2009 So the example from SpookMeister didn't send "dir"?Indeed, only enetred work, it didn't send anything...
Yashied Posted March 26, 2009 Posted March 26, 2009 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? My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
Zompy Posted March 26, 2009 Author Posted March 26, 2009 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now