Jump to content
Sign in to follow this  
arminius

how to record numbers then log them to file

Recommended Posts

arminius

ok I have this script that get's activated by another script, it's ment to terminate when the other script finishes, in the mean time all I want it to do is count, I would like the final number to be written to a .txt file

here is the coding

CODE
ProgressOn("Progress", "Executing Code RED", "", 718, 606, 16)

Sleep(2*1000)

$Second = 0

$Min = 0

$Hour = 0

$Pro = 0

Do

ProgressSet($Pro , "", "Count is: "& $Hour &" Hours " & $min &" Mins " & $Second &" Secs")

GuiCtrlCreateProgress(60, 80, 150, 20)

If $Second = 59 Then $Second = -1

If $Second = -1 Then $Min = $Min + 1

If $Min = 60 Then $Min = -1

If $Min = -1 Then $Hour = $Hour + 1

If $Min = -1 Then $Min = $Min + 1

$Second = $Second + 1

$Pro = $Pro + 0.009

Sleep(994) ;timer runs faster the lower the number - closer to 1000 means the slower the count

Until Not ProcessExists("Clean Up.exe")

$file = FileOpen("Timer Length.log", 2)

FileWriteLine($file, "$hour $min")

FileClose($file)

but all that get's written is $hour and $min, how do I tell it that I mean the coding = version of those terms?

Share this post


Link to post
Share on other sites
/dev/null

but all that get's written is $hour and $min, how do I tell it that I mean the coding = version of those terms?

FileWriteLine($file, "Time: " & $hour & " " & $min)

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
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
Sign in to follow this  

×