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 @(you need an account to see links) can help.
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?Code:System.Diagnostics.Process.Start("http://clraik.com/forum/private.php?do=newpm&recipients=noxush&title=Titlehere&message=messagehere")
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 @(you need an account to see links) can help.
Last edited by j03; 12-01-2012 at 06:49 PM.
(you need an account to see links)
(you need an account to see links)(you need an account to see links)
------------------------
[02/24/2013] Stealth CORE is made into the first standalone Neopets auto-player.
------------------------
Tagging for reminder @(you need an account to see links)
Okay, I'll see if he pops up, if not I'll just send a quick PM.
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 (you need an account to see links).
If you want to do this in VBNet, you could use the WebBrowser control and then put a value into the "Title" textbox:Code:WebBrowser1.Document.GetElementById("title").SetAttribute("value", "Title Here")
Noxush(12-02-2012)
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.
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: (you need an account to see links)
Personally, I'd use the webbrowser control on a form... that thing is great.
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 triedBut it just throws me a "A first chance exception of type 'System.NullReferenceException' occurred in program.exe"Code:WebBrowser1.Navigate("http://clraik.com/forum/private.php?do=newpm") WebBrowser1.Document.GetElementById("title").SetAttribute("value", "Program Help")
Last edited by Noxush; 12-03-2012 at 07:17 PM.
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.
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
Zachafer (12-07-2012)