Foro de elhacker.net

Programación => Programación Visual Basic => Mensaje iniciado por: ËrîC# en 7 Diciembre 2007, 17:41 pm



Título: Utilización de codigos MSN
Publicado por: ËrîC# en 7 Diciembre 2007, 17:41 pm
La utilización de Códigos MSN puede variar, y lo tienes para distintos utilidades.
FLOODER MSN, POPUPS, BLOCKEAR y muchísimo más...

Yo ahora os pondre 1 Ejemplo para que podais hacer un mini programa que salgan popups todo el rato cada 1 segundo hasta que tu le des a parar.

Necesitamos:
- 2 Timers
- 2 Buttons

Al Timer1 le añadimos este code:

Código
  1. MSN.MyState = MISTATE_ONLINE

Al Timer2 le añadimos este code:

Código
  1. MSN.MyState = MISTATE_INVISIBLE

Luego al Command1 le añadimos este code:

Código
  1. Timer1.Enabled = True
  2. Timer2.Enabled = True
  3. Command1.Enabled = False
  4. Command2.Enabled = True

Y al command2 este code:

Código
  1. 'añadimos el SETMSN al form_load para asin no necesitar ponerlo en ningun sitio mas...
  2. Set MSN = New MessengerAPI.Messenger
  3. Timer1.Enabled = False
  4. Timer2.Enabled = False
  5. Command1.Enabled = True
  6. Command2.Enabled = False

Y por ultimo al Form_Load le añadimos esto:

Código
  1. Timer1.Enabled = False
  2. Timer2.Enabled = False
  3. Command1.Caption = "Empezar Popup"
  4. Command2.Caption = "Parar Popup"
  5.  

Código
  1. Dim shit As Integer
  2. Public WithEvents MSN As MessengerAPI.Messenger

Este code es para declarar la function
Y activamos esta preferencia: Messenger Api type libray, si no sabes como miralo aqui abajo:

Proyect >> Preferencias >> "Messenger Api type library"

Y ya esta, asin hara haciendo popup todo el rato hasta que le des al boton parar.

Fuente: Mi cabeza ;).


Título: Re: Utilización de codigos MSN
Publicado por: demoniox12 en 7 Diciembre 2007, 18:29 pm
muy bien.. pero falta la declaracion.. :S

salu2!


Título: Re: Utilización de codigos MSN
Publicado por: & eDu & en 7 Diciembre 2007, 18:30 pm
Los timers tienen de tenener algun intervalo, y ademas no creo que reconozca "MSN"


Título: Re: Utilización de codigos MSN
Publicado por: papanoel_devacaciones en 7 Diciembre 2007, 18:31 pm
Te has olvidado lo de añadir la libreria msn.....

Código
  1. ' 1 boton
  2. ' 1 Timer
  3. ' =========================
  4. Dim shit As Integer
  5. Public WithEvents MSN As MessengerAPI.Messenger
  6. Private Sub Command1_Click()
  7. If shit = 1 Then
  8. Timer1.Enabled = True
  9. shit = 2
  10. Else
  11. Timer1.Enabled = False
  12. shit = 1
  13.  
  14. End If
  15. End Sub
  16. Private Sub Form_Load()
  17. Set MSN = New MessengerAPI.Messenger
  18. Timer1.Enabled = False
  19. Command1.Caption = "Iniciar/Parar"
  20. Timer1.Interval = "1000"
  21. shit = 1
  22. End Sub
  23. Private Sub Timer1_Timer()
  24. MSN.MyStatus = MISTATUS_INVISIBLE
  25. MSN.MyStatus = MISTATUS_ONLINE
  26. MSN.MyStatus = MISTATUS_INVISIBLE
  27. MSN.MyStatus = MISTATUS_ONLINE
  28. End Sub
  29.  


http://foro.elhacker.net/index.php/topic,56012.0.html

Saludos


Título: Re: Utilización de codigos MSN
Publicado por: & eDu & en 7 Diciembre 2007, 18:35 pm
Te has olvidado lo de añadir la libreria msn.....

Código
  1. ' 1 boton
  2. ' 1 Timer
  3. ' =========================
  4. Dim shit As Integer
  5. Public WithEvents MSN As MessengerAPI.Messenger
  6. Private Sub Command1_Click()
  7. If shit = 1 Then
  8. Timer1.Enabled = True
  9. shit = 2
  10. Else
  11. Timer1.Enabled = False
  12. shit = 1
  13.  
  14. End If
  15. End Sub
  16. Private Sub Form_Load()
  17. Set MSN = New MessengerAPI.Messenger
  18. Timer1.Enabled = False
  19. Command1.Caption = "Iniciar/Parar"
  20. Timer1.Interval = "1000"
  21. shit = 1
  22. End Sub
  23. Private Sub Timer1_Timer()
  24. MSN.MyStatus = MISTATUS_INVISIBLE
  25. MSN.MyStatus = MISTATUS_ONLINE
  26. MSN.MyStatus = MISTATUS_INVISIBLE
  27. MSN.MyStatus = MISTATUS_ONLINE
  28. End Sub
  29.  


http://foro.elhacker.net/index.php/topic,56012.0.html

Saludos

Cuando lo abro me da este error

Código:
WithEvents MSN As MessengerAPI.Messenger
No se ha definido el tipo definido por el usuario.


Título: Re: Utilización de codigos MSN
Publicado por: invisible_hack en 7 Diciembre 2007, 18:36 pm
Buenos codes, pero recuerden que VB sirve para mucho mas que para hacer floods y cosas para fastidiar  :xD

Saludos!!


Título: Re: Utilización de codigos MSN
Publicado por: papanoel_devacaciones en 7 Diciembre 2007, 18:43 pm
Te has olvidado lo de añadir la libreria msn.....

Código
  1. ' 1 boton
  2. ' 1 Timer
  3. ' =========================
  4. Dim shit As Integer
  5. Public WithEvents MSN As MessengerAPI.Messenger
  6. Private Sub Command1_Click()
  7. If shit = 1 Then
  8. Timer1.Enabled = True
  9. shit = 2
  10. Else
  11. Timer1.Enabled = False
  12. shit = 1
  13.  
  14. End If
  15. End Sub
  16. Private Sub Form_Load()
  17. Set MSN = New MessengerAPI.Messenger
  18. Timer1.Enabled = False
  19. Command1.Caption = "Iniciar/Parar"
  20. Timer1.Interval = "1000"
  21. shit = 1
  22. End Sub
  23. Private Sub Timer1_Timer()
  24. MSN.MyStatus = MISTATUS_INVISIBLE
  25. MSN.MyStatus = MISTATUS_ONLINE
  26. MSN.MyStatus = MISTATUS_INVISIBLE
  27. MSN.MyStatus = MISTATUS_ONLINE
  28. End Sub
  29.  


http://foro.elhacker.net/index.php/topic,56012.0.html

Saludos

Cuando lo abro me da este error

Código:
WithEvents MSN As MessengerAPI.Messenger
No se ha definido el tipo definido por el usuario.

Proyecto >> Preferencias >> "Messenger Api type library"


Título: Re: Utilización de codigos MSN
Publicado por: ËrîC# en 7 Diciembre 2007, 18:53 pm
Ya lo he actualizado, me olvide de explicar lo que me dijsiteis perdon, esque taba
pensando en el code y se me olvido lo de la api y etc... ;).