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?
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
Very nice Jazz, very helpful indeed. Useful for anyone trying to make a web browser with Auto-Fill. Good Job.
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 :/
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
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.
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"