Results 1 to 8 of 8

Thread: Web Submit in VB [RESOLVED]

  1. #1

    Thread Starter
    Member mlewis412's Avatar
    Join Date
    Oct 2005
    Posts
    39

    Resolved Web Submit in VB [RESOLVED]

    http://www.myspace.com/index.cfm?fus...endID=34720603

    when i click command1 i would like the add to friends on that page be clicked as well. I am guessing java is needed?
    Last edited by mlewis412; Nov 6th, 2005 at 05:32 PM.

  2. #2
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Web Submit in VB

    if you open the page, you are going to need a login and password to enter it... because I tried opening it and that's what I got, even though I do have myspace

  3. #3

    Thread Starter
    Member mlewis412's Avatar
    Join Date
    Oct 2005
    Posts
    39

    Re: Web Submit in VB

    ack either way you need to login to see it, hmm well when it gets on the invite page it has a 2 submit buttons, 1 is to add to friends the other is to cancel .. i need it to script for the add to friends ... it would be much appreciated if some one can help me

  4. #4
    Frenzied Member Inuyasha1782's Avatar
    Join Date
    May 2005
    Location
    California, USA
    Posts
    1,035

    Re: Web Submit in VB

    http://www.vbforums.com/showthread.php?t=369419

    You can refer to my post in there for a little help.
    Age - 15 ::: Level - Advanced
    If you find my post useful please ::Rate It::


  5. #5
    Fanatic Member eimroda's Avatar
    Join Date
    Jul 2000
    Location
    Philippines
    Posts
    642

    Re: Web Submit in VB

    i couldnt see the button u mentioned, but anyways, maybe this is what you need:

    use a web browser control...

    VB Code:
    1. Private Sub Command1_Click()
    2.     With WB.Document
    3.         If WB.ReadyState = READYSTATE_COMPLETE Then
    4.             .getElementById("email").Value = "[email protected]"
    5.             .getElementById("name").Value = "myname"
    6.             .getElementById("address").Value = "cagayan de oro city"
    7.             .Forms(0).Submit
    8.            
    9.             Do While WB.ReadyState <> READYSTATE_COMPLETE
    10.                 DoEvents
    11.             Loop
    12.         End If
    13.     End With
    14. End Sub

    just replace the email, name, address with the exact names of form objects in the page. you can determine it by looking at the html source of the page by clicking menu VIEW-->SOURCE...

    BTW, this is not my code, i found it in this forum and its really fun... its working...
    On Error GoTo Hell

    Hell:
    Kill Me


    Food For Thought:

    - Do not judge a book... if you're not a judge!


  6. #6

    Thread Starter
    Member mlewis412's Avatar
    Join Date
    Oct 2005
    Posts
    39

    Re: Web Submit in VB

    I tried http://www.myspace.com/index.cfm?fus...&Mytoken=43243

    and it gave me this "The Function that you are currently trying to use is disabled and will be back shortly.

    We are making some minor changes to this section please bare with us until we can get this back online.

    Please do NOT email me about this. Just wait it out. -Tom "
    Last edited by mlewis412; Nov 6th, 2005 at 05:28 PM.

  7. #7
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Web Submit in VB

    If you have Firefox, they have the DOM Inspector which lets you click on an item in a page to return all the information about it.

  8. #8

    Thread Starter
    Member mlewis412's Avatar
    Join Date
    Oct 2005
    Posts
    39

    Re: Web Submit in VB

    really! well i have it.. lol thanks i never knew that..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width