Visual Basic - send.keys

Life is soft - evento anual de software empresarial
 
Vista:

send.keys

Publicado por alfonso (1 intervención) el 06/09/2010 03:56:32
ola
bueno mi problema es el siguiente
estoy haciendo un programa que envia pulsaciones de teclas automaticamente
este el contenido el asi

Private Sub Timer1_Timer(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
I = I + 1
If I = 10 Then
SendKeys.Send("1")
End If
If I = 40 Then
SendKeys.Send("2")
End If
If I = 310 Then
SendKeys.Send("4")
End If
If I = 340 Then
SendKeys.Send("5")
End If
End Sub

el problema es que los numeros que envia son los del teclado numerico
el que esta al lado derecho del teclado
y yo necesito que envia los numeros que se encuentran arriba
desde ya muchas gracias xD
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:send.keys

Publicado por XHkrElite (518 intervenciones) el 08/09/2010 05:02:50
tu problema es que pones los numeros ascii incorrectos
ve la tabla del enlace de arriba

intentale asi:
Private Sub Timer1_Timer(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
I = I + 1
If I = 61 Then
SendKeys.Send("1")
End If
If I = 62 Then
SendKeys.Send("2")
End If
If I = 63 Then
SendKeys.Send("3")
End If
If I = 64 Then
SendKeys.Send("4")
End If
If I = 65 Then
SendKeys.Send("5")
End If
End Sub
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar