Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 46
  1. #16
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Quoting myself

    readystate.completed is prolly written somehow else, you'll see....
    Intellisense ftw?...

    @your 2nd question, it is already answered. Figure it out on your own. If you don't know further, go ahead and ask. However first off all, try to do it on your own.



  2. #17
    ppl2pass's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    804
    Reputation
    5
    Thanks
    111
    My Mood
    Amused
    The only problem I have is the quotes:

    Code:
      Dim ViewRegEx As New Regex("<strong>Welcome, <a href="(?<Views>(.*))">")
    this part: <a href=" and ">

    the (?<Views>(.*)) should be:
    MPGH - MultiPlayer Game Hacking - View Profile: ppl2pass

  3. #18
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Use anything else...try...

    Dim ViewRegEx As New Regex("<strong>Welcome, <a href=""(?<User>(.*))</a>.</strong>")
    Dim User As String
    Views = ViewRegEx.Match(httpContent).Groups("User").ToString

    Either try Match or Mid$....

    This should actually work.



  4. #19
    ppl2pass's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    804
    Reputation
    5
    Thanks
    111
    My Mood
    Amused
    I am still having trouble.

    How do you read a source from a webbrowser?
    cause i will need people to login from a webbrowser then click a button to find the number of posts.

    Code:
          Dim Request As HttpWebRequest = HttpWebRequest.Create("https://www.mpgh.net/forum/")
            Dim Response As HttpWebResponse = Request.GetResponse()
            Dim reader As StreamReader = New StreamReader(Response.GetResponseStream)
            Dim httpContent As String
            httpContent = reader.ReadToEnd
    
            Dim ViewRegEx As New Regex("<strong>Welcome, <a href=""(?<User>(.*))</a>.</strong>")
            Dim User As String
            User = ViewRegEx.Match(httpContent).Groups("User").ToString
            Label1.Text = User
    bascially how would you replace the top part of the script with reading a source of a webbrowser url.

  5. #20
    ppl2pass's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    804
    Reputation
    5
    Thanks
    111
    My Mood
    Amused
    also why do you have this:

    Code:
           label1.text = Views.Replace("</li> <li><span class=""shade"">Posts Per Da", "")
    Cant you just put label1.text = Views?

  6. #21
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Please avoid double posting.

    1st post -> Make sure you are logged in. I doubt you are logged in.

    2nd post -> Result without replacing for instance...

    219 </li> <li><span class=""shade"">Posts Per Da

    Result with replacing

    219



  7. #22
    ppl2pass's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    804
    Reputation
    5
    Thanks
    111
    My Mood
    Amused
    ok i found out the problem.

    <a href="https://mpgh.net/forums/index.php?/user/286-ppl2pass/" title='Your Profile'

    there is a space between ppl2pass/" and title.

    how can i fix that?
    Last edited by ppl2pass; 04-18-2010 at 01:39 PM.

  8. #23
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    just customize the code a bit....go ahead and try it first.



  9. #24
    ppl2pass's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    804
    Reputation
    5
    Thanks
    111
    My Mood
    Amused
    i did many times.

    the space is screwing me up.

  10. #25
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Don't you get any result at all?

    Can't try now, later.



  11. #26
    ppl2pass's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    804
    Reputation
    5
    Thanks
    111
    My Mood
    Amused
    no result. just blank.

  12. #27
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    It is because you are not logged in, at the moment you ask for the regex.



  13. #28
    ppl2pass's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    804
    Reputation
    5
    Thanks
    111
    My Mood
    Amused
    nope. i logged in first.
    then i activate the code.
    still no result.

    i think there is something wrong with the code.

  14. #29
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    I am not reading back that far, maybe a catch up will help.
    But if the issue is navigating to the users directory, Why not just have the user login at the home screen, the use getelementsbyid and click their username. This will ensure the user navigates to their directory.

    then have the post count stored in a label..

    Once it goes to that page, save the URL in a label that you can use to later grab the post count (live) if necessary.

    or better yet, save the users URL as a setting , so one the user logs in once, it will always know the url


    Last edited by NextGen1; 04-18-2010 at 02:53 PM.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  15. #30
    ppl2pass's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    804
    Reputation
    5
    Thanks
    111
    My Mood
    Amused
    how can i click my profile:

    Code:
    <span class="hide">Signed in as </span>
    <a id="user_link" class="ipbmenu" title="Your Profile" href="https://peterpanh4x.nintendolegends.com/forums/index.php?/user/286-ppl2pass/">
    ppl2pass
    <img alt=">" src="https://peterpanh4x.nintendolegends.com/forums/public/style_images/gameover/opts_arrow.png"/>
    </a>
    <a id="new_msg_count" title="1 New" href="https://peterpanh4x.nintendolegends.com/forums/index.php?app=members&module=messaging">
    1
    <span class="hide"> New</span>
    </a>
    </p>
    <ul id="user_link_menucontent" style="display: none; position: absolute; z-index: 9999;">
    <li id="user_profile" style="z-index: 10000;">
    <a title="Your Profile" href="https://peterpanh4x.nintendolegends.com/forums/index.php?/user/286-ppl2pass/" style="z-index: 10000;">My Profile</a>
    </li>

Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. [SOLVED][Help]Posting
    By soccerguy in forum Call of Duty Modern Warfare 2 Help
    Replies: 14
    Last Post: 08-01-2010, 06:33 AM
  2. :O are we allowed to double post in this forum?
    By Kevin Rudd in forum Spammers Corner
    Replies: 3
    Last Post: 12-20-2009, 12:37 AM
  3. need some help posting
    By minista365 in forum CrossFire Hacks & Cheats
    Replies: 2
    Last Post: 11-29-2009, 11:38 PM
  4. [Help] Can't post on z8 forums.
    By Ricky1337 in forum CrossFire Hacks & Cheats
    Replies: 20
    Last Post: 10-19-2009, 02:48 AM
  5. [ROFL] Look What Some Oober Noob posted on nexon forums XD
    By willdill42 in forum Combat Arms Hacks & Cheats
    Replies: 20
    Last Post: 08-12-2008, 04:24 PM