Results 1 to 10 of 10

Thread: [resolved] need help clicking a trickly lil image on a html doc

Threaded View

  1. #1

    Thread Starter
    Addicted Member jalexander's Avatar
    Join Date
    Jan 2011
    Location
    Memphis, TN
    Posts
    160

    [resolved] need help clicking a trickly lil image on a html doc

    wrote a little program to comment when my friends post a new instagram picture....so im using statigram a.t.m.
    got everything else working so far ...i load my friends pics from my update page...& i can set the "comment" perfectly fine...im just having issues hitting 'send'

    Here is the html on the page for the 'send comment' tiny lil question mark looking button

    Code:
    <a href="#" class="commentAction" id="postComment-402467323865880623_317878733"></a>
    I've tried a few things but can't get them to work....here is one thing i tried...unsuccessfully! LoL

    Code:
                For Each b As HtmlElement In hDoc.GetElementsByTagName("a")
                    If b.GetAttribute("commentAction").ToLower = "#" Then
                        b.InvokeMember("click")
                        Exit For
                    End If
                Next
    + rep for anyone that takes a sec to help me out <3
    Last edited by jalexander; Mar 2nd, 2013 at 06:44 PM. Reason: special thanks to Inferrd & dunfiddlin :-)
    dim jenn as geek = true
    Learning ~ Visual Basic 2010 ~ in free time between college/work -
    currently looking for a 'programming buddy' / 'coder friend' / and or 'mentor'. p.m. me if you
    have ANY free time AT ALL I'm like 33% of a novice level ~ willing 2 listen/learn +
    i am totally super motivated & promise to make an effffin amazing protege!!! #swag

    | -_-_- -_-_- |
    ...W.T..F!?.....
    ||| Matter on the atomic/quantum level isn't solid or even matter at all. It can also exist in at least 2 places simultaneously (demonstrated in lab). It's position can only be established when it's actually observed. If we turn our back on it... it goes back to a wave form. History show's that every previous generation (since the beginning of time) got almost everything wrong. Then it might very well stand to reason that up is down & right can be wrong. Admit it.. our combined perception of reality is just that, we know absolutely nothing of actual reality & to think we do is simply subscribing to a "ignorance is bliss" mantra |||

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