Manel Rodero Posted March 10, 2006 Share Posted March 10, 2006 Hello, I'm using AutoIt to do some scripts but I need to have its output in the console not using a MsgBox. Is it possible to do a simple Echo to the screen? (something like WScript.Echo in VBS). Thanks. Link to comment Share on other sites More sharing options...
GrungeRocker Posted March 10, 2006 Share Posted March 10, 2006 here you are:ConsoleWrite ( "data" ) [font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font] Link to comment Share on other sites More sharing options...
Manel Rodero Posted March 10, 2006 Author Share Posted March 10, 2006 (edited) This doesn't work!As explained in the functions manual:This does not write to a DOS consoleAnd I want do write to the DOS console ;-( Edited March 10, 2006 by Manel Rodero Link to comment Share on other sites More sharing options...
jaenster Posted March 10, 2006 Share Posted March 10, 2006 Yes he dont , look in scripts to : Console -jaenster Link to comment Share on other sites More sharing options...
BigDod Posted March 10, 2006 Share Posted March 10, 2006 How about Run(@ComSpec & " /k " & 'echo "Is this what you want"', "") Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Manel Rodero Posted March 10, 2006 Author Share Posted March 10, 2006 What do you mean by "look in scripts to : Console"? Link to comment Share on other sites More sharing options...
kclteam Posted March 10, 2006 Share Posted March 10, 2006 he meant "look into the help file for Console related terms" I believe we should all pay our tax with a smile. I tried - but they wanted cash! Link to comment Share on other sites More sharing options...
GrungeRocker Posted March 10, 2006 Share Posted March 10, 2006 ahhh he meant the DOS-Console....didn't knew that XD [font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font] Link to comment Share on other sites More sharing options...
Xenobiologist Posted March 10, 2006 Share Posted March 10, 2006 Hi, what about? expandcollapse popup#include <Array.au3> #include<Constants.au3> Dim $env_vars[1][2], $temp_line = "", $temp_env $foo = Run(@ComSpec & " /c set", "", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) While 1 $line = StdoutRead($foo) If @error = -1 Then ExitLoop $temp_line = $temp_line & $line Wend $temp_env = StringSplit($temp_line, @CRLF, 1) ; clean out any empty lines For $x = $temp_env[0] To 1 Step -1 If $temp_env[$x] = @LF Or $temp_env[$x] = @CR Or Not StringLen($temp_env[$x]) Then _ArrayDelete($temp_env,$x) $temp_env[0] = $temp_env[0] - 1 EndIf Next ReDim $env_vars[$temp_env[0]][2] For $x = 1 To $temp_env[0] $temp_line = StringSplit($temp_env[$x],"=") $env_vars[$x - 1][0] = $temp_line[1] $env_vars[$x - 1][1] = $temp_line[2] Next For $x = 0 To UBound($env_vars) - 1 $lResult = MsgBox(1, $env_vars[$x][0], $env_vars[$x][1]) Switch $lResult Case 1; ok Case 2; cancel ExitLoop EndSwitch Next So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times 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