Results 1 to 10 of 10

Thread: [VB.NET] Sending a PM through clraik using a link

  1. #1

    Join Date
    Nov 2012
    Gender
    Location
    Canada
    Posts
    29
    Thanks
    4
    Thanked 16 Times in 6 Posts


    Downloads
    45
    Uploads
    0
    Mentioned
    4 Post(s)
    Time Online
    1 d 19 h 6 m
    Avg. Time Online
    1 m
    Rep Power
    6

    [VB.NET] Sending a PM through clraik using a link

    Hey, I've been working on a program for the past few hours getting back into the groove and am wondering how I could open a user's default browser up, navigate to the messaging section of clraik, and add a default user to send to as "Noxush" and the title to be "So and so title."

    I tried:



    But, it just automatically sends a blank message to myself, so how would I get it to not send the request but just fill in the proper data?

  2. #2
    Saiyan Race





    Infamous Joe's Avatar
    Join Date
    Dec 2011
    Gender
    Location
    Hyperbolic Time Chamber
    Age
    26
    Posts
    9,752
    Thanks
    2,780
    Thanked 16,233 Times in 4,237 Posts


    Downloads
    23
    Uploads
    36
    Mentioned
    2985 Post(s)
    Time Online
    293 d 15 h 58 m
    Avg. Time Online
    3 h 44 m
    Rep Power
    10
    Gamer IDs

    Gamertag: Infam0us Joe Steam ID: infamousjoe
    Heading to bed, but if no one answers this by tomorrow afternoon then I'll help you out.

    Edit: Actually yeah not sure.. never really worked with web browsers with .NET yet. Maybe @Zachafer can help.
    Last edited by Infamous Joe; 12-01-2012 at 06:49 PM.

  3. #3
    Black on Black
    Vegeta's Avatar
    Join Date
    Dec 2011
    Gender
    Posts
    115
    Thanks
    35
    Thanked 92 Times in 52 Posts


    Downloads
    22
    Uploads
    0
    Mentioned
    32 Post(s)
    Time Online
    6 d 12 h 57 m
    Avg. Time Online
    4 m
    Rep Power
    6
    Tagging for reminder @Infamous Joe

  4. #4

    Join Date
    Nov 2012
    Gender
    Location
    Canada
    Posts
    29
    Thanks
    4
    Thanked 16 Times in 6 Posts


    Downloads
    45
    Uploads
    0
    Mentioned
    4 Post(s)
    Time Online
    1 d 19 h 6 m
    Avg. Time Online
    1 m
    Rep Power
    6
    Okay, I'll see if he pops up, if not I'll just send a quick PM.

  5. #5
    Little Brother


    Zachafer's Avatar
    Join Date
    Dec 2011
    Gender
    Posts
    1,206
    Thanks
    723
    Thanked 1,392 Times in 651 Posts


    Downloads
    81
    Uploads
    17
    Mentioned
    497 Post(s)
    Time Online
    21 d 17 h 32 m
    Avg. Time Online
    16 m
    Rep Power
    14
    Quote Originally Posted by Noxush View Post
    Hey, I've been working on a program for the past few hours getting back into the groove and am wondering how I could open a user's default browser up, navigate to the messaging section of clraik, and add a default user to send to as "Noxush" and the title to be "So and so title."

    I tried:



    But, it just automatically sends a blank message to myself, so how would I get it to not send the request but just fill in the proper data?
    The link is incorrect. private.php would have to look for variables in the $_REQUEST array indexed "do", "recipients", "title", "message". As of 2/26/11 vBulletin only reads the "do" and "u" link variables.

    Short answer: No you can't because vBulletin isn't setup like a mailto url.

    If you want to do this in VBNet, you could use the WebBrowser control and then put a value into the "Title" textbox:


  6. The Following User Says Thank You to Zachafer For This Useful Post:

    Noxush (12-02-2012)

  7. #6

    Join Date
    Nov 2012
    Gender
    Location
    Canada
    Posts
    29
    Thanks
    4
    Thanked 16 Times in 6 Posts


    Downloads
    45
    Uploads
    0
    Mentioned
    4 Post(s)
    Time Online
    1 d 19 h 6 m
    Avg. Time Online
    1 m
    Rep Power
    6
    Strange, I'm sure I saw someone do what I'm looking to do in Vb.Net a while back, I'll play around with your suggestion and see what I can do.

  8. #7
    Little Brother


    Zachafer's Avatar
    Join Date
    Dec 2011
    Gender
    Posts
    1,206
    Thanks
    723
    Thanked 1,392 Times in 651 Posts


    Downloads
    81
    Uploads
    17
    Mentioned
    497 Post(s)
    Time Online
    21 d 17 h 32 m
    Avg. Time Online
    16 m
    Rep Power
    14
    Use your wrapper to send a PM using their clraik auth info? (clear it with joe first)

    I'm sure you could try something like this in VBNet: http://www.vbforums.com/showthread.p...=1#post3483778

    Personally, I'd use the webbrowser control on a form... that thing is great.

  9. #8

    Join Date
    Nov 2012
    Gender
    Location
    Canada
    Posts
    29
    Thanks
    4
    Thanked 16 Times in 6 Posts


    Downloads
    45
    Uploads
    0
    Mentioned
    4 Post(s)
    Time Online
    1 d 19 h 6 m
    Avg. Time Online
    1 m
    Rep Power
    6
    Well, it opened a web browser and if they were logged in, it would go to the messaging page, put in a predefined title as well as contact, and allowed you to type a message to send. I was planning on using it as a "Contact Me" control.

    EDIT: Oh, I had an epiphany and am testing with web browser controls, will reply later.

    EDIT: Okay, I tried

    But it just throws me a "A first chance exception of type 'System.NullReferenceException' occurred in program.exe"
    Last edited by Noxush; 12-03-2012 at 07:17 PM.

  10. #9
    Little Brother


    Zachafer's Avatar
    Join Date
    Dec 2011
    Gender
    Posts
    1,206
    Thanks
    723
    Thanked 1,392 Times in 651 Posts


    Downloads
    81
    Uploads
    17
    Mentioned
    497 Post(s)
    Time Online
    21 d 17 h 32 m
    Avg. Time Online
    16 m
    Rep Power
    14
    First of all use WebBrowswer1.Navigate ("http://clraik.com/forum/private.php?do=newpm&u=6069") 'notice the changed URL

    The null exception is occurring because once you call the Navigate method it doesn't pause execution. It will start loading the webpage and move on to the next code. So the Element with ID "title" does not (yet) exist in WebBrowser1.Document because it hasn't fully loaded when that line of code is ran.

    Also, once you fix that, you will have to deal with logging in the user because a new WebBrowser has cleared cookies so the user will not be logged into clraik.

  11. #10

    Join Date
    Nov 2012
    Gender
    Location
    Canada
    Posts
    29
    Thanks
    4
    Thanked 16 Times in 6 Posts


    Downloads
    45
    Uploads
    0
    Mentioned
    4 Post(s)
    Time Online
    1 d 19 h 6 m
    Avg. Time Online
    1 m
    Rep Power
    6
    Oh crazy, maybe not such a good idea then and probably preferably an email may be a solution.
    Last edited by Noxush; 12-04-2012 at 07:07 PM. Reason: Figured it out

  12. The Following User Says Thank You to Noxush For This Useful Post:

    Zachafer (12-07-2012)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •