Hem / Tips & tricks
Option ExplicitPrivate Declare Function GetInputState Lib "user32" () As LongPrivate Sub Command1_Click()Dim i As LongDo Until i > 2147483000 i = i + 1If GetInputState() Then DoEventsLoopMsgBox "Klar med loop"End Sub