Ciao, volevo creare una combinazioni di tasti. Primo dove posso trovare una lista con le vari valori dei tasti. Ho cercato ma non ho trovato niente.
Secondo, ho trovato questo codice qui, ma non funziona. Qualcuno ha qualche idea.
Utilizzo Windows 7
Proprietà KeyPreview è posta a True.
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF11 Then F11 = True
If KeyCode = vbKeyF12 Then F12 = True
If F11 And F12 Then
MsgBox "ciao"
F11 = False
F12 = False
End If
End Sub
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF11 Or KeyCode = vbKeyF12 Then
F11 = False
F12 = False
End If
End Sub