Results 1 to 2 of 2

Thread: trigger event every second?

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2006
    Location
    Taiwan
    Posts
    37

    trigger event every second?

    hi there..
    i'm writing rfid code now, and i got some problem with event.
    i need to trigger the OpenCard() function automatically, so that whenever i placed my tag on the reader, it automatically triger the function and open the card.

    To solve this problem, i'm thinking of calling the function 20 times every second. But i don't know what 'time' class/attribute to use to work with this.

    Anybody can help me ?
    Or may be another technique beside calling the function 20 times every second?

    sorry for my bad english, and thx for reading anyway...

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: trigger event every second?

    You can use the System Timer class, while shooting your process off in a separate thread that will run separate from the page's own thread.

    As for calling it 20 times a second, it depends, why do you need it called 20 times a second?

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