Results 1 to 5 of 5

Thread: Random Timer ?

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2000
    Posts
    12

    Random Timer ?

    Hi
    How can Ihave an Random Timer ?

    like Timer1.Interval = " here a Random Number "

    One more I need al list of all WIndowshandles how do I get this ?


    thx
    Alex

    [Edited by mezzo on 04-10-2000 at 11:44 AM]

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658

    Random Timer

    This will give you a random number between 0 and 100.

    Code:
    Randomize
    Timer1.Interval = Int(Rnd * 100)
    No Worries

    Iain.

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2000
    Posts
    12

    Random timer ?

    Thx for Ur answer does this timer Change during the program ?
    Because I need a Timer that changes during the Programm

    thanks
    alex

  4. #4
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    If you want the time interval to change during the program there are a couple of ways to fo it.

    1. When something happens like a button is clicked, place the previous code i gave you into the event.

    2. Or place the code into the timer event of the timer so that every time the event is fired it chooses a different interval for the timer.

  5. #5

    Thread Starter
    New Member
    Join Date
    Apr 2000
    Posts
    12

    Thx

    Thx didnt think taht works

    alex

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