Click to See Complete Forum and Search --> : GetTickCount to check a certian property
Silvertine
Nov 4th, 2000, 05:59 PM
How can i use GetTickCount to check a property really fast(kinda like a timer but faster)
QWERTY
Nov 4th, 2000, 06:24 PM
what do you mean by "to check a certain property"; what do you want to do?
I assume you mean checking the property every millisecond. If so, use the following 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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.