| View previous topic :: View next topic |
| Author |
Message |
AoiMasamune Master Cheater
Reputation: 1
Joined: 14 Jun 2007 Posts: 255
|
Posted: Fri Feb 29, 2008 3:55 am Post subject: |
|
|
Call Countdown_Done() will only execute if if the countdown becomes 00:00:00 and Countdown() is called again. I figured that would be an easy way to tell if the countdown is complete rather than comparing the label's text to 00:00:00 every time the timer fires. Admittedly it could be done either way. Actually, using the above method will actually fire 1 second after the timer is done, so maybe it's better to just do the compare.
Why would you need to check the length against 1 through 9 instead of just 1? I thought you wanted a clock look. 000000000:0000000000:000000000 doesn't seem very clock-like to me...
|
|
| Back to top |
|
 |
Mousai Expert Cheater
Reputation: 0
Joined: 24 Jul 2006 Posts: 119 Location: Irving, Texas
|
Posted: Fri Feb 29, 2008 12:14 pm Post subject: |
|
|
| Code: | If strTemp.Length = 1 Then
strTemp = "0" & strTemp
End If |
Lol, so strTemp.Length = 1 is the current number of digits the temp is?
And it doesn't matter about the countdown, I'm going to make it stop once it reaches 00:00:00. Because Mm's timing's not always the same, I was going to make a hot key, but I'm not that far in my book yet obviously.>_>
_________________
|
|
| Back to top |
|
 |
AoiMasamune Master Cheater
Reputation: 1
Joined: 14 Jun 2007 Posts: 255
|
Posted: Fri Feb 29, 2008 1:24 pm Post subject: |
|
|
Yes, strTemp.Length is the number of digits.
| Quote: | | And it doesn't matter about the countdown, I'm going to make it stop once it reaches 00:00:00. Because Mm's timing's not always the same, I was going to make a hot key, but I'm not that far in my book yet obviously.>_> |
Ah, gotcha.
|
|
| Back to top |
|
 |
Mousai Expert Cheater
Reputation: 0
Joined: 24 Jul 2006 Posts: 119 Location: Irving, Texas
|
Posted: Fri Feb 29, 2008 2:15 pm Post subject: |
|
|
Well I had already had a post written up, but that was BEFORE Firefox went gay and froze so now I have to re-type. >_>
I finished my Mushmom Timer, I used pretty much the same code you gave me, but instead I used three timers. Next time I'll fix it to two, it's because the the code:
| Code: | If seconds = 0 then
seconds = 59
End if |
Well that's making it only 59 seconds and there's 60 seconds in a minute so I had to change it to Less than instead of equal that way it counts 0. Because before that my minutes would change one second before my seconds hit 00 and would accumulate like that. XD
But thanks for the help though!
Here's my Mm Timer :^D (attached)
I plan on making it for all channels, hot keys, and options for notification because sucks. But this is good for now =).
_________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Fri Feb 29, 2008 4:15 pm Post subject: |
|
|
Ok so lets do this a little bit easier to understand, or at least I hope so lol.
1 hour = 60 minutes
1 minute = 60 seconds
1 second = 1000 milliseconds
1 hour = 60 minutes = 3600 seconds = 3600000 milliseconds
You can convert seconds to any format as needed doing some basic functions for conversion:
To get hours from seconds, you can do:
Hours = ((Seconds/60)/60)
To get minutes from seconds, you can do:
Minutes = (Seconds/60)
_________________
- Retired. |
|
| Back to top |
|
 |
|