Einzelnen Beitrag anzeigen
Alt 08.02.2004, 16:50   #5
reemrev
Inventar
 
Registriert seit: 31.01.2000
Beiträge: 1.706

Mein Computer

Standard

Timer ist doch viel zu umständlich, mit Wait (keine Prozessor-Auslastung,kein DoEvents) gehts auch, aber sleep ist die einfachste:

Private Declare Function WaitForSingleObject Lib "kernel32" (ByVal Handle As Long, ByVal dwMilliseconds As Long) As Long

Public Function Wait(ByVal mSek As Long)
WaitForSingleObject -1, mSek
End Function

und so wird aufgerufen: Wait 2000
reemrev ist offline   Mit Zitat antworten