d00dness Posted July 24, 2012 Share Posted July 24, 2012 Good evening. I wanted to log my progress and made a little checker. Unfort. I get unable to open file when executed. Already checked the permissions and file . Thanks .. Func StartLog() if $file = 0 then ToolTip('Opening log file',0,0) sleep($pingwait + Random(-$randamount, $randamount)) $file = FileOpen ( $log, 0) If $file = -1 Then MsgBox(0, "Error", "Unable to open log file.") EndScript() EndIf Endif ;$line = FileReadLine($file, -1) if $logOn = 0 then while 1 ToolTip('Starting Log file',0,0) Send("/") sleep($pingwait/2 + Random(-$randamount, $randamount)) Send("log") sleep($pingwait/2 + Random(-$randamount, $randamount)) Send("{ENTER}") sleep($pingwait/2 + Random(-$randamount, $randamount)) $line = FileReadLine($file, -1) if StringRegExp($line, ['logging enabled') = 1 Then $logOn = 1 ExitLoop endif Wend EndIf Link to comment Share on other sites More sharing options...
GordonFreeman Posted July 24, 2012 Share Posted July 24, 2012 (edited) can show the full code? Or a screenshot of what happened Edited July 24, 2012 by GordonFreeman Frabjous Installation Link to comment Share on other sites More sharing options...
Attckdog Posted July 24, 2012 Share Posted July 24, 2012 I suggest using this UDF by Yashied for making and adding to, a log. A true renaissance man Link to comment Share on other sites More sharing options...
d00dness Posted July 25, 2012 Author Share Posted July 25, 2012 Thanks much for the replies. Apparently I didn't do my homework on permissions too well ...http://support.microsoft.com/kb/326549Works like a charm now. Thanks again .. 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