Normas del foro

Curso Hacker
Bienvenido(a), Visitante. Favor de ingresar o registrarse.
¿Perdiste tu email de activación? - Enero 08, 2009, 02:51:57
Inicio Ayuda Ingresar Registrarse
Visita: Articulos - Juegos Gratis - Da Foros

Comunidad Underground Hispana  |  Programacion  |  Programación  |  Visual Basic y Net (Moderador: ANYD00M)  |  Tema: Detectar pulsacion raton? 0 Usuarios y 1 Visitante están viendo este tema. « anterior próximo »
Páginas: [1] Ir Abajo Imprimir
Autor Tema: Detectar pulsacion raton?  (Leído 175 veces)
H4NG3R
Habitual
*****
Desconectado Desconectado

Mensajes: 290

Mientras todos callavan, alguien grito LIBERTAD!

hanger_69@hotmail.com
Ver Perfil
« en: ſeptiembre 13, 2006, 09:06:07 »

Como pueeo detectar unicamenta la pulsacion del raton ya sea del izkierdo o del derecho?

En línea
sNipeR-
Visitante
« Respuesta #1 en: ſeptiembre 13, 2006, 12:12:34 »

Wenas
Tienes k buscar mas... Eso es muy facil y yo mismo ya tenia posteado algo k te ayudaria.

En un Form1:
Código:
Private Sub Timer1_Timer() 'El intervalo pone 1 ms
If (GetAsyncKeyState(VK_LBUTTON)) Then
'lokesea
End If
If (GetAsyncKeyState(VK_RBUTTON)) Then
'lokesea
End If
End Sub

En un Module:
Código:
Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As Long) As Integer
Public Const VK_LBUTTON = &H1
Public Const VK_RBUTTON = &H2
Espero k te sirva.
Salu2
En línea
H4NG3R
Habitual
*****
Desconectado Desconectado

Mensajes: 290

Mientras todos callavan, alguien grito LIBERTAD!

hanger_69@hotmail.com
Ver Perfil
« Respuesta #2 en: ſeptiembre 13, 2006, 12:21:47 »

« Última modificación: ſeptiembre 13, 2006, 01:01:30 por H4NG3R » En línea
Páginas: [1] Ir Arriba Imprimir 
Comunidad Underground Hispana  |  Programacion  |  Programación  |  Visual Basic y Net (Moderador: ANYD00M)  |  Tema: Detectar pulsacion raton? « anterior próximo »
Ir a:  


Ranking-Hits
Powered by SMF 1.1.7 | SMF © 2006-2007, Simple Machines LLC