Delta01 Posted April 11, 2008 Share Posted April 11, 2008 Well, I'm sure most of you know of the "console applications" that can be created in C#/C++. My question to you is, can autoit create them? Create a console window and then write text into it, I've looked under Console and WINAPI in the helpfile but haven't found anything. If it can, please tell me which functions to look up. Thanks Link to comment Share on other sites More sharing options...
BrettF Posted April 11, 2008 Share Posted April 11, 2008 Well,I'm sure most of you know of the "console applications" that can be created in C#/C++. My question to you is, can autoit create them? Create a console window and then write text into it, I've looked under Console and WINAPI in the helpfile but haven't found anything.If it can, please tell me which functions to look up.ThanksConsoleRead/ConsoleWrite and #AutoIt3Wrapper_Change2CUI=y at the top. Cheers,Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Delta01 Posted April 11, 2008 Author Share Posted April 11, 2008 ConsoleRead/ConsoleWrite and #AutoIt3Wrapper_Change2CUI=y at the top. Cheers,BrettSorry. But I don't understand the whole AutoIt wrapper. Can you do a quick example? Link to comment Share on other sites More sharing options...
Squirrely1 Posted April 11, 2008 Share Posted April 11, 2008 (edited) @Delta1 - Please put this at the top of your script, and read it:; Purpose - Script boilerplate to build a command consoled app. ; Requires - SciTe4AutoIt3 to be installed on the system used to compile script ; Notes - ; Only works as expected using the compiled version of your script. ; Edit: Using this script, you CAN still create any GUI windows. ; Use ConsoleWrite to output to the command window. ; ConsoleRead maybe can be used to read from the command window. ; StdoutRead maybe can be used to read from the command window. #AutoIt3Wrapper_Change2CUI=y ; code to accept a commandline parameter - ; Author - Zedna If $CmdLine[0] > 0 Then If $CmdLine[1] = "/help" Then ConsoleWrite("some info") Exit EndIf EndIfEdit: Stricken text as per RichardRobertson: "Using this script, you cannot..." Edited April 11, 2008 by Squirrely1 Das Häschen benutzt Radar Link to comment Share on other sites More sharing options...
Richard Robertson Posted April 11, 2008 Share Posted April 11, 2008 Squirrely, you can create standard windows in a console application. There's nothing preventing that from being done. In a normal sense, yes it would be a problem, but as far as I know, AutoIt always runs the message loop for it's own private window. Link to comment Share on other sites More sharing options...
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