Results 1 to 2 of 2

Thread: Need help filling textbox in a webpage

  1. #1

    Thread Starter
    Junior Member d.crozier7's Avatar
    Join Date
    Dec 2011
    Location
    United States
    Posts
    28

    Need help filling textbox in a webpage

    I have been struggling very much trying to figure out how to get my vb program to enter a comment into myspace's comment box...

    I am trying to get this working cause I am managing some myspace pages for some bands/artists and would like to automate the commenting for new friends.

    When I automate the filling of a webpage's textbox, I use this kind of code:
    Code:
    webbrowser1.document.getelementbyid("HTML ID/NAME").setattribute(value, mycomment.text)
    But this seems to not work with the html elements on myspace's comment textbox...

    The html code I found for myspace's comment box is this:
    Code:
    <div contenteditable="true" class="smartEdit" data-tip="Post a comment...">Post a comment...</div>
    If anyone can please help me figure out what code to use to get the vb program to fill out the comment box on myspace, that would be greatly appreciated.

    Thanks in advance,
    David
    Last edited by d.crozier7; Mar 10th, 2012 at 07:36 PM.
    I dream in VB...
    Do
    If Sun > 0 Then
    Sun.Visible = False
    Conscious.Enabled = False
    End If
    Loop

  2. #2
    Bad man! ident's Avatar
    Join Date
    Mar 2009
    Location
    Cambridge
    Posts
    5,401

    Re: Need help filling textbox in a webpage

    Using a WB control any other way other then |an UI element should not be done

Tags for this Thread

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