»–gHÒ§†–« Admin
Posts : 92 Join date : 2007-12-19 Age : 32 Location : NY
| Subject: Simple Time/Date Tut Thu Dec 20, 2007 6:17 am | |
| - Code:
-
kk, in this tut I will teach you how to add a system clock and date either into or out of your project.
okay, to start out open up VB and make a new project. then you need to add 1 textbox and 1 timer. the timer needs to = true with an interval of 1.
kk, now you need to add in ur code for the timer.
Code: Private Sub Timer1_Timer() text1.text = time End Sub you now have a system time for your project.
[color=orange]Date[/color]
now to do the date you just need add another textbox and add this to your timer's code
Code: Private Sub Timer1_Timer() text1.text = time text2.text = date End Sub that just about sums it up for this simple but useful app.
to do this ingame you just use drawtext and mr. a's module 6 i believe, soo, thank you all for reading this tut and look out for my work in the future. Also: look for other tuts in the near future.
To add a module you go up to Project click it and then click add module and search for the required module. Click open after you found it and it will automatically add it into your project. You've officially been spoon-fed. Enjoy.
thank you and have a nice day. | |
|
Mc.Code Learning...
Posts : 17 Join date : 2007-12-28 Age : 35 Location : Romania
| Subject: Re: Simple Time/Date Tut Fri Dec 28, 2007 7:36 am | |
| I think its better. I used this when I modify Mr.A Mouse InGame Trainer and works good - Code:
-
Select Case c Case 0 Call DrawTextv2(0, Date, &HFFFF4F, 200, 200, True) Call DrawTextv2(1, Time, &HFFFF2F, 200, 250, True) End Select Else Select Case c Call DrawTextv2(0, Date, &HFFFF4F, 0, 0, False) Call DrawTextv2(1, Time, &HFFFF2F, 0, 0, False)
End Select | |
|
»–gHÒ§†–« Admin
Posts : 92 Join date : 2007-12-19 Age : 32 Location : NY
| Subject: Re: Simple Time/Date Tut Fri Dec 28, 2007 8:23 am | |
| yes, basically the same just shorter, im just trying to make very simple tutorials for beginners. btw, i look forward to seeing what you do. I hope you will be good enough to make VIP, i'll find out i guess... Good to see you in the forums also. | |
|
Jtwizzle Admin
Posts : 163 Join date : 2007-12-21
| Subject: Re: Simple Time/Date Tut Mon Jan 07, 2008 12:43 am | |
| Thats gotta be the easiest tut other than hello world . Nice | |
|
Sponsored content
| Subject: Re: Simple Time/Date Tut | |
| |
|