carlosa Posted September 18, 2008 Share Posted September 18, 2008 is there a way to print text back to the command line when running command line scripts? something similar to echo? or print? Carlos AnguianoSenior Technical Director/Pipeline EngineerRed magnet Studios Venice, CAhttp://www.redmagnetfx.com Link to comment Share on other sites More sharing options...
IKilledBambi Posted September 18, 2008 Share Posted September 18, 2008 (edited) I'm guessing you don't, but do you mean this? Sleep( 3000 ) Send( "Test{ENTER}" ) Edited September 18, 2008 by IKilledBambi Link to comment Share on other sites More sharing options...
sanhen Posted September 18, 2008 Share Posted September 18, 2008 $foo = Run(@ComSpec & " /c dir", @ScriptDir, @SW_HIDE, 2) ProcessWaitClose($foo) $lines = "" While 1 $line = StdoutRead($foo) If @error Then ExitLoop $lines &= $line Wend MsgBox(64,"test",$lines) Link to comment Share on other sites More sharing options...
martin Posted September 18, 2008 Share Posted September 18, 2008 is there a way to print text back to the command linewhen running command line scripts?something similar to echo? or print?If you have compiled your script as a console application then ConsoleWrite will output text on the command line.The /console parameter for Aut2exe.exe is used to compile console applications or use the line#AutoIt3Wrapper_Change2CUI=yat the top of your script if you use SciTE, then compile and run from the command line. If you just run the script from SciTE the output will seen in the outpt pane. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. 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