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'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.