|
-
Oct 2nd, 2005, 05:34 AM
#1
Thread Starter
Hyperactive Member
Alarm Clock
How easy would it be to make an alarm clock.
I just want it to go of at about 10 different times a day. To remind me to join poker tournements.
I would want it to be minimized to system tray and then just make some random noise when it gets to the time i want it to go of at.
Is this advanced or quite simple ?
-
Oct 2nd, 2005, 06:05 AM
#2
Fanatic Member
Re: Alarm Clock
Sounds quite easy, but you could get this easily from http://www.pscode.com/vb
-
Oct 2nd, 2005, 06:35 AM
#3
Re: Alarm Clock
Ricky1,
You could just create a task in Task Scheduler to run a program that just displays a message or just execute the send message command to yourself. No real programming required.
-
Oct 2nd, 2005, 08:23 AM
#4
Re: Alarm Clock
 Originally Posted by randem
Ricky1,
You could just create a task in Task Scheduler to run a program that just displays a message or just execute the send message command to yourself. No real programming required.
ummmmmmm, how can i add a task in the Task Scheduler?? just by making the first form invisible??
-
Oct 2nd, 2005, 05:37 PM
#5
-
Oct 2nd, 2005, 05:45 PM
#6
Fanatic Member
Re: Alarm Clock
task scheduler is a program built into windows i believe
-
Oct 2nd, 2005, 05:58 PM
#7
Re: Alarm Clock
Yes,
Start->Settings->Control Panel->Task Scheduler
or
Start->Control Panel->Task Scheduler
-
Oct 2nd, 2005, 06:43 PM
#8
Fanatic Member
Re: Alarm Clock
if you insist on doing it in code form then try this
VB Code:
Dim showTime As Boolean
Dim MyHour As Integer
Dim MyMinute As Integer
Dim MySecond As Integer
Dim CurrHour As Integer
Dim CurrMinute As Integer
Dim CurrSecond As Integer
Private Sub DisplayTime()
do while showtime = false
lbl1.Caption = Time
DoEvents
Check_Time
Loop
End Sub
Private Sub Check_Time()
' Set hour, minute and seconds for alarm
MyHour = ' the hour u want somthing to happen at
MyMinute = 'the min u want somthing to happen at
MySecond = 'the second u want somthing to happen at
CurrHour = Hour(Time)
CurrMinute = Minute(Time)
CurrSecond = Second(Time)
If (CurrHour = MyHour) And (CurrMinute = MyMinute) And (CurrSecond = MySecond) Then
MsgBox "times up!!!"
End If
-
Oct 2nd, 2005, 06:56 PM
#9
Re: Alarm Clock
You can also program the Task Scheduler by using the AT command from the command prompt, or by using SHELL programmatically. Use AT /? to find the parameters involved.
-
Oct 4th, 2005, 03:53 PM
#10
Fanatic Member
Re: Alarm Clock
dglienna's way is probally easier than doing it code way but i assumed u wanted code that's why its on the classic vb forum
-
Oct 4th, 2005, 05:14 PM
#11
Re: Alarm Clock
You can shell the 'at' command from vb
-
Oct 4th, 2005, 07:44 PM
#12
Fanatic Member
Re: Alarm Clock
really ? i never new that lol well we all learn new stuff everyday dont we
-
Oct 5th, 2005, 07:23 AM
#13
Re: Alarm Clock
 Originally Posted by randem
Harsh Gupta,
What????
sorry for late reply.............i wanted to ask you to explain the process you suggested before!!!
sorry for my bad language!!!!
-
Oct 5th, 2005, 04:53 PM
#14
Re: Alarm Clock
Harsh Gupta,
If you use an NT base OS (Win NT,2000,XP) you can go to the control panel and create a task that you can schedule to run whenever you like. Or you can create one at the DOS command prompt using th AT command. For more info on the AT command... at the command prompt key in AT /?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|