elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Tutorial básico de Quickjs


  Mostrar Mensajes
Páginas: [1]
1  Programación / .NET (C#, VB.NET, ASP) / (Ayuda)Autoclick VB2008 PICOSEGUNDOS en: 10 Noviembre 2013, 15:08 pm
Buenas me gustaria que el interval de mi autoclick fuera picosegundo mi codigo es este:
Código
  1. Public Class Form1
  2.    Private Declare Sub mouse_event Lib "user32" (ByVal dwflags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cbuttons As Long, ByVal dwExtraInfo As Long)
  3.    Private Const mouseclickup = 4
  4.    Private Const mouseclickdown = 2
  5.    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer
  6.  
  7.  
  8. 'En el Timer1 ponemos:
  9.  
  10.    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  11.        Windows.Forms.Cursor.Position = New Point(Windows.Forms.Cursor.Position.X, Windows.Forms.Cursor.Position.Y)
  12.        Timer1.Interval = NumericUpDown1.Value
  13.        Label1.Text = Windows.Forms.Cursor.Position.X
  14.        Label2.Text = Windows.Forms.Cursor.Position.Y
  15.  
  16.        Windows.Forms.Cursor.Position = New Point(TextBox1.Text, TextBox2.Text)
  17.  
  18.        mouse_event(mouseclickdown, 0, 0, 0, 0)
  19.        mouse_event(mouseclickup, 0, 0, 0, 0)
  20.  
  21.        Windows.Forms.Cursor.Position = New Point(Label1.Text, Label2.Text)
  22.    End Sub
  23.  
  24.  
  25. 'En el Timer2 ponemos:
  26.  
  27. Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
  28.        Dim hotkey As Boolean
  29.        hotkey = GetAsyncKeyState(Keys.F9)
  30.        If hotkey = True Then timer1.start()
  31.        Dim hotkey1 As Boolean
  32.        hotkey1 = GetAsyncKeyState(Keys.F10)
  33.        If hotkey1 = True Then Timer1.Stop()
  34.    End Sub
  35.  
  36.  
  37. 'En el Timer3 ponemos:
  38.  
  39.    Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick
  40. Dim Posicion As Boolean
  41.        Posicion = GetAsyncKeyState(Keys.F7)
  42.        If Posicion = True Then
  43.            TextBox1.Text = MousePosition.X : TextBox2.Text = MousePosition.Y
  44.        End If
  45.        If Posicion = False Then
  46.        End if
  47.    End Sub
  48. End Class
  49.  
2  Programación / Programación General / Autoclick visual basic 2008 picosegundos en: 10 Noviembre 2013, 14:14 pm
NECESITO QUE ALGUIEN ME AYUDE DE COMO PONER EL INTERVAL DE UN AUTOCLICK EN PICOSEGUNDOS,NANOSEGUNDOS ETC GRACIAS DE ANTEMANO,SALUDOS.
Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines