Results 1 to 3 of 3

Thread: GetTickCount to check a certian property

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    14

    Angry

    How can i use GetTickCount to check a property really fast(kinda like a timer but faster)

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523
    what do you mean by "to check a certain property"; what do you want to do?

  3. #3
    Guest
    I assume you mean checking the property every millisecond. If so, use the following code.
    Code:
    Private Declare Function GetTickCount Lib "kernel32" () As Long
    
    Private Sub CheckProperty()
        Do
            Start = GetTickCount
            Do While GetTickCount < Start + 1
                DoEvents
            Loop
            
            '<--Check your property here-->
        Loop
    End Sub

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