TheDcoder Posted August 8, 2015 Posted August 8, 2015 Gah! Paste this in your script:Global $sConsoleOutput = "" Func MyConsoleWrite($sOutput) If @Compiled Then $sConsoleOutput = $sOutput & @CRLF Else ConsoleWrite($sOutput) EndIf EndFuncUse MyConsoleWrite instead of ConsoleWrite, To read the output then call MsgBox like this:MsgBox(0, "Console Output", $sConsoleOutput) You can look at the Debug UDF which is shipped with AutoIt by default, (Helpfile -> User Defined Functions Reference -> Debug Managment) TD EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion
Developers Jos Posted August 8, 2015 Developers Posted August 8, 2015 (edited) @Danyfirex, No idea what is happening for you. I have the same OS and for me it is working fine.You do see the Consolewrite output when you run the script in SciTE?Jos Edited August 8, 2015 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.
Danyfirex Posted August 8, 2015 Posted August 8, 2015 @Jos Yes, When I run from SciTE Consolewrite work Correctly. Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
Danyfirex Posted August 8, 2015 Posted August 8, 2015 (edited) Mother of Bill Gates what is happening with CMD.Now Do this ShellExecute("cmd.exe",'/k "C:\Users\RAZIEL\Desktop\ASD.exe"')and Works.Then do as before opening cmd then dropping my exe file and I got the output too :S Saludos Edited August 8, 2015 by Danyfirex EDIT Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
K0valski Posted August 9, 2015 Posted August 9, 2015 (edited) hi all,For my own, is use that:DllCall("kernel32.dll", "none", "OutputDebugString", "str", "What you want !!!!") ; ; => Output to Win32 debug outputFrom the exe, users won't see anything, but if you run DebugView you will see all what you want.http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx You'll see all the output.I use this function to replace my consolewrite: Func Log($Texte) $texttmp = @YEAR & @MON & @MDAY & "-" & @HOUR & "H" & @MIN & "m" & @SEC & " >: " & $Texte FileWrite($Fichier_DEBUG, $texttmp) ; => Output to a file ConsoleWrite2( $texttmp ) ; Output to console. DllCall("kernel32.dll", "none", "OutputDebugString", "str", $texttmp) ; ; => Output to Win32 debug output ; http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx EndFunchope it helps. Edited August 9, 2015 by K0valski I was so shame not to have say hi ! :)
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