Jump to content

displaying the log file to a user


diikee
 Share

Recommended Posts

#include <File.au3>
#include <IE.au3>

$file = FileOpen("logfile_" &@MDAY &@MON &@HOUR &@MIN &"_" &$ip[$x] & ".txt", 9)
       If $file = -1 Then
            MsgBox(0, "Error", "Unable to open file.")
        Exit
      EndIf
Sleep(2000)
FileWrite($file, "SQA Testing IP#: " & $ip[$x] & @CRLF
FileWrite($file, "Home Page Testing" & @MDAY &"/" & @MON &"/"  & @YEAR &"_"  & @HOUR &":"  & @MIN  & @CRLF)
FileWrite($file, "Products Page Testing" & @MDAY &"/" & @MON &"/"  & @YEAR &"_"  & @HOUR &":"  & @MIN  & @CRLF)
FileWrite($file, "SQA Testing Finished at: " & @MDAY & @MON & @YEAR & @HOUR & @MIN & @CRLF)
Sleep(2000)
FileClose($file)

I would like to dispay the logfile or a status window for the user to see as the test progresses. (when file is opened till its closed).

Is it possible to do that or do I have to incorporate a GUI for my script??

Link to comment
Share on other sites

You know how we write to console, then writelog will write to a file without showing the user what's being logged. I want to show the user, the file that I am writing to since they are running the compiled .exe and am running the debug version from the editor.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...