Per il rilascio credevosi potesse fare una cosa cosė:
Codice sorgente - presumibilmente VB.NET |
Private Sub Timer2_Timer() If GetAsyncKeyState(vbKeyLButton) = -32768 Then 'MsgBox "premuto" Timer3.Enabled = True End If End Sub Private Sub Timer3_Timer() If GetAsyncKeyState(vbKeyLButton) = 0 Then MsgBox "lasciato" Timer3.Enabled = False End If End Sub
|
Ovviamente non funziona... il timer non si ferma e continua a scrivere "Lasciato"... avete suggerimenti?
Vorrei evitare il Timer3.Interval = 0
Grazie