1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help Me Plz

Discussion in 'Visual Basic .NET' started by speedupto1mbps, Sep 23, 2010.

  1. speedupto1mbps

    speedupto1mbps Newbie

    Joined:
    Aug 21, 2010
    Messages:
    48
    Likes Received:
    6
    Location:
    In Hell
    I am creating a new software in vb.net.

    I want to autoclick a website.

    Code:
    <div id="pager-bottom" class="paginator">
            Page 1          » <a href="/search?max_id=xxxxxxxxxxx&amp;offset_recent_correction=3&amp;page=2&amp;q=+music" class="next">Older</a>    </div>
    Here i want to autoclick on class value "next".

    Can any one help me here , what vb.net code should i use here???
     
  2. speedupto1mbps

    speedupto1mbps Newbie

    Joined:
    Aug 21, 2010
    Messages:
    48
    Likes Received:
    6
    Location:
    In Hell
    is any one can help me on this???
     
  3. BugFixed

    BugFixed Junior Member

    Joined:
    Sep 24, 2010
    Messages:
    130
    Likes Received:
    39
    Use Webbrowser to do that (IE engine).
     
  4. crashed

    crashed Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 13, 2008
    Messages:
    958
    Likes Received:
    1,198
    Occupation:
    Guru-slayer
    Location:
    Behind the VPN...
    Home Page:
    Why not just parse the html and browse to the url?

    Look at the HttpRequest class
     
  5. energy

    energy Newbie

    Joined:
    Dec 18, 2008
    Messages:
    32
    Likes Received:
    2
    PHP:
     Dim myProxy As New WebProxy(""1080)
      
    Dim req As WebRequest WebRequest.Create("")
                    
    req.Proxy myProxy
                    req
    .Timeout 2000
                    Dim resp 
    As WebResponse req.GetResponse()

                    
    Dim s As Stream resp.GetResponseStream()
                    
    Dim sr As StreamReader = New StreamReader(sEncoding.ASCII)
                    
    Dim doc As String sr.ReadToEnd
    Do something like this, then doc contains the html page, i like to split it by line, however you can just search for the start and end of your 'next' url.
     
    Last edited: Sep 29, 2010
  6. cyrix

    cyrix Junior Member

    Joined:
    Sep 19, 2008
    Messages:
    179
    Likes Received:
    61
    Occupation:
    Full Time Internet Marketer\Developer
    Location:
    United States
    I'm with crashed. I would use HttpWebRequest along with a 3rd part DOM parser. HtmlAgilityPack is a good one, allows you to use xpath queries to easily locate your elements. Good luck man!
     
  7. energy

    energy Newbie

    Joined:
    Dec 18, 2008
    Messages:
    32
    Likes Received:
    2
    Not sure what you're going to do with pages and pages of twitter posts.
     
  8. crepito

    crepito Junior Member

    Joined:
    Oct 5, 2008
    Messages:
    145
    Likes Received:
    28
    Location:
    Portugal
    How it should be done properly:
    Just sniff what the browser sends to the server when u click the button and emulate the same behaviour using httprequests/sockets.

    If u lack the knowledge to the this way, you can use the webBrowser component, get the link and send a click() event to it. There are many examples on the web on how to do this. google is your friend