Results 1 to 6 of 6

Thread: Execute @ a certain time

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    1

    Question

    How can i make my program run, and let the computer run as normal until a certain time when it displays a dialog box.

    Eg at 6:00PM everyday, it shows form1 saying: 'It's Internet Time'

  2. #2
    Addicted Member
    Join Date
    Jul 1999
    Location
    St-Élie d'Orford, Quebec, Canada
    Posts
    133
    Hi,

    Try a timer (on a hidden form) every minute that checks for the appropriate time and if the condition is true then... display your window.

  3. #3
    Guest
    Your your App is rather large, than you could make a small program to do all of the time checking and when it's time, it uses the Shell statement to open your App.

  4. #4
    Guest
    Code:
    Private Sub Form_Load()
    Form1.Visible = False
    Timer1.Interval = 10000
    End Sub
    
    Private Sub Timer1_Timer()
    If Time = #6:00:00 PM# Then
    MsgBox "It's Internet Time"
    End If
    End Sub

  5. #5
    Guest
    you could also use an api, like find window, or find window handle(I odnt know what they are called)
    to launch the dialup box

    the title bar of mine is
    "Connect To"

  6. #6
    Guest
    ok, forgot my last post, i am not even sure if it will work...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width