Timer.Action
From Xojo Documentation
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site! |
Event
The Action event handler contains the code that will execute after the specified Period and in the specified RunMode.
Sample Code
This example reports the arrow key the user pressed.
If Keyboard.AsyncKeyDown(&h7B) Then
// do something with the left arrow key
MessageBox("Left")
End If
If Keyboard.AsyncKeyDown(&h7C) Then
// do something with the right arrow key...
MessageBox("Right")
End If
If Keyboard.AsyncKeyDown(&h7D) Then
// do something with the down arrow key...
MessageBox("Down")
End If
If Keyboard.AsyncKeyDown(&h7E) Then
// do something with the Up arrow key...
MessageBox("Up")
End If
// do something with the left arrow key
MessageBox("Left")
End If
If Keyboard.AsyncKeyDown(&h7C) Then
// do something with the right arrow key...
MessageBox("Right")
End If
If Keyboard.AsyncKeyDown(&h7D) Then
// do something with the down arrow key...
MessageBox("Down")
End If
If Keyboard.AsyncKeyDown(&h7E) Then
// do something with the Up arrow key...
MessageBox("Up")
End If