|
-
Sep 3rd, 2000, 11:37 PM
#1
Thread Starter
New Member
Does anybody know how to do this? What I need is a program that will detect when it is a given time of day, and then change the system time to a different time, and then later change the time back to actual time. Oh, and it has to work on NT4.
I have no idea how to do this. (I've searched to no avail)
Thanks.
-
Sep 4th, 2000, 12:59 AM
#2
Fanatic Member
Code:
If Time = "11:00:00" Then
Time = Text1.Text
End If
Time is the variable that you would use.
Hope that helps,
D!m
-
Sep 4th, 2000, 01:40 AM
#3
_______
<?>
the above won't work.
In code you would need a timer to check the time
Timer1 Code...
Code:
If time = "12:01:00 PM" then
'I don't know the code approach but here is how you _
can shell the dialog for manual change.
End If
Shell "rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,/fa"
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 4th, 2000, 02:35 AM
#4
Here is a link to the SetSystemTime api function which will allow you to change the time and date of the system's clock.
-
Sep 4th, 2000, 11:36 AM
#5
Thread Starter
New Member
Hey, thanks. I think Matthew Gates wins the top thanks, though.
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
|