MrChris Posted December 3, 2007 Posted December 3, 2007 (edited) How can I have the consolewritten text be written to a TXT file on the pc the Compiled script is run on? I mean If I test my uncompiled script in Scitec using the "#AutoIt3Wrapper_Run_Debug_Mode=Y" directive I can see what my script is doing on each line while its doing it but when its compiled I dont have that option so I was thinking of having it output to a txtfile for the whole script. Reason: My uncompiled AU3 script works fine but when I compile it and run it stops running somewhere in my script and I dont know why. Thanks, MrChris Edited December 3, 2007 by MrChris
MrChris Posted December 4, 2007 Author Posted December 4, 2007 Is ConsoleWrite what I am looking for? I cant find how to make it output to a file instead of the console itsself.
Generator Posted December 4, 2007 Posted December 4, 2007 Something Like #include <File.au3> _ConsoleWrite("Testing") _ConsoleWrite("Testing2") _ConsoleWrite("Testing3") Func _ConsoleWrite($Data) If Not FileExists("Console.txt") Then _FileCreate("Console.txt") _FileWriteToLine("Console.txt",_FileCountLines("Console.txt"),$Data,0) EndFunc
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