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

 

 


Tema destacado: Introducción a Git (Primera Parte)


  Mostrar Mensajes
Páginas: 1 ... 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 [32] 33 34 35 36 37 38 39 40 41 42 43 44 45
311  Foros Generales / Foro Libre / Re: Sus escritorios en: 13 Junio 2009, 10:02 am
ya joe si esque la 9800 GT

va mejor con una intel gma integrada como la mia hombre


jojojojo xD
312  Foros Generales / Foro Libre / Re: ¡Vuestros Ordenadores! en: 12 Junio 2009, 15:34 pm
vista owned? xD
313  Programación / Programación Visual Basic / Re: Mover Formulario clickando en posicion determinada en: 11 Junio 2009, 23:02 pm
gracias jeje ea justo lo que buscaba
314  Programación / Programación Visual Basic / Mover Formulario clickando en posicion determinada en: 11 Junio 2009, 21:52 pm
Veran estoy haciendo mi formulario si ninguna barra, para cerrar y demas, pero necesito poder mover el formulario y al no tener barra no se como

como puedo hacer para poder mover el formulario apretando en una posicion determinada?
315  Foros Generales / Foro Libre / Re: Sus escritorios en: 10 Junio 2009, 22:25 pm
Pongo el mio renovado

La papelera siempre vacia, todo ordenado, sus correspondientes backups del s.o de las webs, los blogs datos.....etc vamos una miniempresa xD

316  Foros Generales / Foro Libre / Re: ¡Vuestros Ordenadores! en: 8 Junio 2009, 15:30 pm
jaja no te lo recomendaria  :xD
317  Programación / Programación Visual Basic / Re: Pulsando teclas con visual basic en: 7 Junio 2009, 10:52 am
yo necesito el timer ya que mi fin es poder invitar a todos mis amigos de tuenti en menos de 1 segundo sin dar clicks jeje y ya lo consegui, ahora aqui os dejo el code, lo pondre como programa, lo arreglare un poquito y demas jj

Código
  1. Private Declare Function Getasynckeystate Lib "user32" Alias "GetAsyncKeyState" (ByVal VKEY As Long) As Integer
  2. Const WM_NCLBUTTONDOWN = &HA1
  3.  
  4. 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)
  5. Private Const MOUSEEVENTF_LEFTDOWN = &H2
  6. Private Const MOUSEEVENTF_LEFTUP = &H4
  7. Private Const MOUSEEVENTF_MIDDLEDOWN = &H20
  8. Private Const MOUSEEVENTF_MIDDLEUP = &H40
  9. Private Const MOUSEEVENTF_MOVE = &H1
  10. Private Const MOUSEEVENTF_RIGHTDOWN = &H8
  11. Private Const MOUSEEVENTF_RIGHTUP = &H10
  12. Private Sub Text1_change()
  13. If Not IsNumeric(Text1.Text) Then MsgBox "solo numeros", vbCritical, "error"
  14. End Sub
  15.  
  16.  
  17. Private Sub Timer1_Timer()
  18.  
  19. Call mouse_event(MOUSEEVENTF_LEFTDOWN, 100, 100, 0, 0)
  20. Call mouse_event(MOUSEEVENTF_LEFTUP, 100, 100, 0, 0)
  21.  
  22. End Sub
  23.  
  24. Private Sub Timer2_Timer()
  25. On Error Resume Next
  26. Dim keystate As Long
  27. Dim keystate2 As Long
  28.  
  29. keystate = Getasynckeystate(vbKeyF6)
  30. keystate2 = Getasynckeystate(vbKeyF7)
  31.  
  32. If (keystate And &H1) = &H1 Then
  33. Timer1.Interval = Text1.Text
  34. Exit Sub
  35. End If
  36.  
  37. If (keystate2 And &H1) = &H1 Then
  38. Timer1.Interval = 0
  39. Exit Sub
  40. End If
  41.  
  42.  
  43. End Sub
  44.  

Como solo pulsando no hacia la accion, tenia que pulsar y soltar asi que lo agregue en el timer, luego en el mismo programa puedo especificar cada cuanto tiempo quiero hacer el bucle de clicks

por cierto, como se haria para que en vez de estar minimizado pasase a la barra de tareas que es mas comodo?

gracias
318  Programación / Programación Visual Basic / Re: Pulsando teclas con visual basic en: 6 Junio 2009, 16:04 pm
okey thanks, me pondre con esa api  :D
319  Programación / Programación Visual Basic / Re: Pulsando teclas con visual basic en: 6 Junio 2009, 15:46 pm
eso seria una parte del codigo pero aun estoy por la pulsacion del mouse:

he cojido este codigo de recursos vb:
Código
  1. ' Constantes para las teclas y otros
  2.  
  3. Const KEYEVENTF_KEYUP = &H2
  4. Const KEYEVENTF_EXTENDEDKEY = &H1
  5.  
  6.  
  7. 'Declaración del Api keybd_event para la presión de tecla
  8.  
  9. Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _
  10.    ByVal bScan As Byte, _
  11.    ByVal dwFlags As Long, _
  12.    ByVal dwExtraInfo As Long)
  13.  
  14.  
  15.  
  16. Sub Pulsar_Tecla(Tecla As Long)
  17.  
  18.    Call keybd_event(Tecla, 0, 0, 0)
  19.  
  20.    Call keybd_event(Tecla, 0, KEYEVENTF_KEYUP, 0)
  21.  
  22. End Sub
  23.  
  24. ' Presiona la tecla Tab
  25. Private Sub Timer1_Timer()
  26. Call Pulsar_Tecla([b]vbKeyTab[/b])
  27. End Sub

el vbkeytab lo cambio por chr(1) o vbkeylbutton y no me funciona me da este error:

con chr(1): type mysmatch

con vbkeylbutton: no ace nada


ayuda plis
320  Programación / Programación Visual Basic / Re: Pulsando teclas con visual basic en: 6 Junio 2009, 15:31 pm
Código
  1. Const KEYEVENTF_KEYUP = &H2
  2. Const KEYEVENTF_EXTENDEDKEY = &H1
  3.  
  4.  
  5. Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _
  6.     ByVal bScan As Byte, _
  7.     ByVal dwFlags As Long, _
  8.     ByVal dwExtraInfo As Long)
  9.  
  10.  
  11.  
  12. Sub Pulsar_Tecla(vbKeyLButton As Long)
  13.  
  14.     Call keybd_event(vbKeyLButton, 0, 0, 0)
  15.  
  16.     Call keybd_event(vbKeyLButton, 0, KEYEVENTF_KEYUP, 0)
  17.  
  18. End Sub
  19.  
  20.  
  21. Private Sub Timer1_Timer()
  22. Call Pulsar_Tecla
  23. End Sub


Por ahora he hecho eso, pero me da error en el timer cuando llamo a la funcion pulsar tecla
Páginas: 1 ... 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 [32] 33 34 35 36 37 38 39 40 41 42 43 44 45
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines