form sender

Discussion in 'Archives' started by hmm, Jul 4, 2007.

form sender
  1. Unread #1 - Jul 4, 2007 at 9:58 PM
  2. hmm
    Joined:
    Jan 21, 2007
    Posts:
    181
    Referrals:
    2
    Sythe Gold:
    5

    hmm Active Member

    form sender

    how would i make something using inet or whatever to automatically fill forms?
    such as automated posting comments on youtube, or something of the sort.

    ive seen it being done on youtube so it made me curious, how is it done?
     
  3. Unread #2 - Jul 5, 2007 at 1:31 AM
  4. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    form sender

    man, if the sythe.org server went any slower it would distort the space time continuum


    Just for you I made this, you should be able to make it work with any form now

    Just remember:

    if the submit buttons code has onclick="lolihttp" then use .click otherwise use .submit


    you will see what I mean when you view the code
     

    Attached Files:

  5. Unread #3 - Jul 5, 2007 at 3:09 AM
  6. Darthatron
    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    form sender

    Very nice Jazz, very helpful indeed. Useful for anyone trying to make a web browser with Auto-Fill. Good Job.
     
  7. Unread #4 - Jul 5, 2007 at 3:22 AM
  8. hmm
    Joined:
    Jan 21, 2007
    Posts:
    181
    Referrals:
    2
    Sythe Gold:
    5

    hmm Active Member

    form sender

    you are too awsome:)

    this works fine but i was also trying to figure out howto do it using the "name="fileupload" etc. so i can use inet and save loading the whole page.
    many uses for this, imageshack etc.
    for example how youre php mail does it, or the swiftswitch pricelookup "link.com/search.php?name=item"
    i dont know if i make any sense to you, but is that only doable with php?

    either way thanks, this helped alot :)

    edit: yea sythe can be pretty slow :/
     
  9. Unread #5 - Jul 5, 2007 at 4:29 AM
  10. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    form sender

    well, the inet sends the URL and the PHP uses the "GET" function inside of it to get those values. So unless youtube has the php get function you cant use that method.

    You might be able to screw around with the post function inside the Inet control... I might try it for you after work if you need
     
  11. Unread #6 - Jul 5, 2007 at 1:17 PM
  12. hmm
    Joined:
    Jan 21, 2007
    Posts:
    181
    Referrals:
    2
    Sythe Gold:
    5

    hmm Active Member

    form sender

    go ahead if you want, gives u something to do? ;)
    lol

    edit: im messing around seeing if i can do it to upload images, im a little lost..
    Code:
    Dim WebDone As Boolean
    
    Private Sub Command1_Click()
        If Not WebDone Then Exit Sub
      WebBrowser1.Document.All("the_file").Value = "D:\ff.bmp"
       ' WebBrowser1.Document.All("add_comment_button").Click
    End Sub
    
    Private Sub Form_Load()
        WebBrowser1.Navigate "http://tinypic.com/upload.php"
        WebDone = False
    End Sub
    
    Private Sub WebBrowser1_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
        WebDone = True
    End Sub
    now i dont get errors about setting the value to "D:\ff.bmp", it simply just doesnt show up on the webpage. :(

    edit2: its because it says "<input type="file" name="the_file" class="file" size="32"/>"
    but if i save the page and edit it to: "<input type="file" name="the_file" class="file" size="32" type="text"/>"
    then it works, if you know a workaround thatd be great as i feel i shouldnt need to save the page, but will if i have to.
     
  13. Unread #7 - Jul 9, 2007 at 4:50 AM
  14. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    form sender

    You are just overwriting the type="" section, I'll see what I can do...

    EDIT:
    From what I can see, the object type "file" inside the HTML doesn't allow the write capabilities. So you will have to settle for an inferior method:

    Code:
        
    WebBrowser1.Document.All("the_file").focus
    SendKeys "C:\lol.gif"
    
     
  15. Unread #8 - Jul 9, 2007 at 3:20 PM
  16. hmm
    Joined:
    Jan 21, 2007
    Posts:
    181
    Referrals:
    2
    Sythe Gold:
    5

    hmm Active Member

    form sender

    that works, thanks :D
     
< .::+~sElLiNg LvL 79 mAgE~+::. | Selling Possible Barrows Pure/Money Maker >

Users viewing this thread
1 guest


 
 
Adblock breaks this site