18/05/09 6:25
AMIGOS
Salve a tutti....
Ho un problema che no riesco a capire....
Insomma...vorrei che questo codice digitando i relativi tasti F1 F12, non mi si
aprano le relative associazioni ad essi..
Esempio: F1 apre il blocco note..e cosi via, e vorre abbilitare i tasti da F1 ad F2
ed il comando ({enter}) con delle checkbox...
insomma spunto la checkbox relativa al tasto F1 e me lo abilita
spunto la seconda checkbox e mi abilita l ' invio della frase cioè ("{enter}"
Posto il codice:
Ho un problema che no riesco a capire....
Insomma...vorrei che questo codice digitando i relativi tasti F1 F12, non mi si
aprano le relative associazioni ad essi..
Esempio: F1 apre il blocco note..e cosi via, e vorre abbilitare i tasti da F1 ad F2
ed il comando ({enter}) con delle checkbox...
insomma spunto la checkbox relativa al tasto F1 e me lo abilita
spunto la seconda checkbox e mi abilita l ' invio della frase cioè ("{enter}"
Posto il codice:
Private Sub Timer1_Timer() If GetKeyPress(vbKeyF1) Then SendKeys (Text1.Text) + ("{enter}") End If If GetKeyPress(vbKeyF2) Then SendKeys (Text2.Text) + ("{enter}") End If If GetKeyPress(vbKeyF3) Then SendKeys (Text3.Text) + ("{enter}") End If If GetKeyPress(vbKeyF4) Then SendKeys (Text4.Text) + ("{enter}") End If If GetKeyPress(vbKeyF5) Then SendKeys (Text5.Text) + ("{enter}") End If If GetKeyPress(vbKeyF6) Then SendKeys (Text6.Text) + ("{enter}") End If If GetKeyPress(vbKeyF7) Then SendKeys (Text7.Text) + ("{enter}") End If If GetKeyPress(vbKeyF8) Then SendKeys (Text8.Text) + ("{enter}") End If If GetKeyPress(vbKeyF9) Then SendKeys (Text9.Text) + ("{enter}") End If If GetKeyPress(vbKeyF10) Then SendKeys (Text10.Text) + ("{enter}") End If If GetKeyPress(vbKeyF11) Then SendKeys (Text11.Text) + ("{enter}") End If If GetKeyPress(vbKeyF12) Then SendKeys (Text12.Text) + ("{enter}") End If End Sub Private Sub Form_Load() Timer1.Interval = "100" End Sub
Ultima modifica effettuata da AMIGOS 01/06/09 21:53
aaa