Results 1 to 3 of 3

Thread: Need a quick program. Help with idea's.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    Colorado
    Posts
    83

    Need a quick program. Help with idea's.

    I need to write a program that will launch a url in IE at a specified time. I'll be at work at the time I need to log into class tomarrow at around 4:30.... (US Mountain time)

    I'm not sure how to go about it. Something like:

    If DateTimeNow(4:30pm) then
    launch www.webname.com\cgi.bin\ etc...

    end if


    The program would be running all day so when the time
    comes the url would be launched. Anyone have some
    idea's? I need something simple so I can write it and compile it during my lunch hour.

    I've tried a few things but none of them work.
    12/32/84 - I need some code to make me a sandwhich.

  2. #2
    Addicted Member
    Join Date
    Jul 1999
    Posts
    207
    Creat a form with 1 timer and two textboxes and try this:

    VB Code:
    1. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    2.         Timer1.Interval = 200
    3.         Timer1.Enabled = True
    4.     End Sub
    5.  
    6.     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    7.         TextBox1.Text = DateTime.Now
    8.         If DateTime.Now.ToString = TextBox2.Text Then
    9.             Timer1.Enabled = False
    10.             Shell("explorer.exe [url]http://www.msn.com[/url]", AppWinStyle.MaximizedFocus)
    11.         End If
    12.     End Sub

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    Colorado
    Posts
    83
    That is perfect! I tested it and it works.

    Thanks a bunch!

    Jes|Er
    12/32/84 - I need some code to make me a sandwhich.

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