Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Mousai's VB Help Thread
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
AoiMasamune
Master Cheater
Reputation: 1

Joined: 14 Jun 2007
Posts: 255

PostPosted: Fri Feb 29, 2008 3:55 am    Post subject: Reply with quote

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
View user's profile Send private message
Mousai
Expert Cheater
Reputation: 0

Joined: 24 Jul 2006
Posts: 119
Location: Irving, Texas

PostPosted: Fri Feb 29, 2008 12:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
AoiMasamune
Master Cheater
Reputation: 1

Joined: 14 Jun 2007
Posts: 255

PostPosted: Fri Feb 29, 2008 1:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mousai
Expert Cheater
Reputation: 0

Joined: 24 Jul 2006
Posts: 119
Location: Irving, Texas

PostPosted: Fri Feb 29, 2008 2:15 pm    Post subject: Reply with quote

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
Code:
Beep()
sucks. But this is good for now =).


The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Feb 29, 2008 4:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites