Timer.Action

From Xojo Documentation

Event


Timer.Action()

Supported on Desktop, Web, Console.

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