gvh.AddKeyListener("keylistener", MainForm)
Sub KeyListener_KeyPressed (KeyCode As String) As Boolean
If KeyCode.Length = 2 And KeyCode.StartsWith("F") Then
Log("Function pressed: " & KeyCode)
Return True
End If
Return False
End Sub
gvh.AddKeyListener("keylistener", MainForm)
Sub KeyListener_KeyPressed (KeyCode As String) As Boolean
If KeyCode.Length = 2 And KeyCode.StartsWith("F") Then
Log("Function pressed: " & KeyCode)
Return True
End If
Return False
End Sub
Solved
If KeyCode.Length= 4 And KeyCode.StartsWith("L") Then 'Arrow left'
If KeyCode.Length= 5 And KeyCode.StartsWith("R") Then 'Arrow right'
If KeyCode.Length= 2 And KeyCode.StartsWith("U") Then 'Arrow up'
If KeyCode.Length= 4 And KeyCode.StartsWith("D") Then 'Arroe down'