peter123 Posted July 30, 2007 Share Posted July 30, 2007 I have one question, how can I do the code Echo? I have this program made: programma_s.au3 (but it is in the Netherlands ) I need only the Echo tag :S :S Link to comment Share on other sites More sharing options...
jvanegmond Posted July 30, 2007 Share Posted July 30, 2007 Echo Each language has it's unique set of functions, and Echo is not among the list of AutoIt functions. Instead, use MsgBox or ConsoleWrite when using SciTe. github.com/jvanegmond Link to comment Share on other sites More sharing options...
peter123 Posted July 31, 2007 Author Share Posted July 31, 2007 can you help me please, it doesn't work if i replace msgbox to consolewrite :s Link to comment Share on other sites More sharing options...
lordofthestrings Posted July 31, 2007 Share Posted July 31, 2007 (edited) I hope this helps.. $var = "Press any key! " runwait(@ComSpec & " /C echo " & $var & " & pause>nul") if FileExists(@ScriptDir & "\test.vbs") Then FileDelete(@ScriptDir & "\test.vbs") EndIf $TstFile = FileOpen(@ScriptDir & "\test.vbs", 1) FileWriteLine($TstFile, 'wscript.echo "goodbye cruel world"') FileWriteLine($TstFile, 'wscript.sleep 2000') FileClose($TstFile) runwait('wscript //NOLOGO ' & @ScriptDir & '\test.vbs') runwait('cscript //NOLOGO ' & @ScriptDir & '\test.vbs') Edited July 31, 2007 by lordofthestrings Link to comment Share on other sites More sharing options...
ssubirias3 Posted August 4, 2007 Share Posted August 4, 2007 @lordofthestrings - this seemed like an interesting topic and I was interested to see what your code did. A couple of points for what its worth. #1 -- UNC paths are not supported. Defaulting to Windows directory. <== Guessing this could be corrected if I mapped a drive letter instead of using UNC paths. #2 -- I get a Windows Script Host dialog box with the error text "There is no file extension in "<unc path>"." Link to comment Share on other sites More sharing options...
peter123 Posted August 5, 2007 Author Share Posted August 5, 2007 @lordofstrings, this was not just what i was asking for. what i want is a program in an autoit3 program and not a vbscript. Link to comment Share on other sites More sharing options...
EvAsion Posted August 5, 2007 Share Posted August 5, 2007 (edited) what i want is a program in an autoit3 program and not a vbscript.if you want a program within an autoit3 program look at fileinstall. =) Edited August 5, 2007 by EvAsion |-- Periodic Table --||-- Dynamic Class Timetable --||-- Navigation in Counter-Strike --| 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