![]() |
| |||||||
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Member Join Date: Feb 2009
Posts: 46
Reputation: 1 ![]() cBay Rating: | This is for my prizerebel bot, i had figured out a way to fill in those fields that ask for a name/email/address and stuff like that but I lost it about 2 weeks ago and I can't remember how i did it now. I am offering a 1 month xbox live gold code to the first person who can write a script for me in C# which can select those textboxes on an offers page and fill them in. It should look something like this: var name = textbox1.text; // then the script you make to fill in the textbox that asks for your name on an offer. This is what the HTML looks like ---------------------------- <input id="firstname" name="firstname" type="text" class="textbox02" value="" /> --------------------------- You don't need to get all the names for each field, I just need a way to get my bot to fill in these fields. I can adjust the field names to match the ones in the offer. Thanks to anyone who wants to help me ![]() |
| | |
| Sponsored Links | |
| | #2 (permalink) |
| Kyahahaha! The world is mine! | Ha I got this. Just do something like this. If you want something more detailed I can do it for you. Code: string firstname = textBox1.Text;
this.webBrowser1.Document.GetElementById("firstname").SetAttribute("value", firstname);
Last edited by Dr. Wily; 04-09-2009 at 04:35 PM.. |
| | |
| | #4 (permalink) |
| Member Join Date: Dec 2008
Posts: 80
Reputation: -14 ![]() cBay Rating: | just do this Code: on error resume next
If WebBrowser1.Document.All("fname") Is Nothing Then
Else
WebBrowser1.Document.All("fname").SetAttribute("value", textbox1.text)
End If
If WebBrowser1.Document.All("firstname") Is Nothing Then
Else
WebBrowser1.Document.All("firstname").SetAttribute("value", textbox1.text)
End If
If WebBrowser1.Document.All("Fn") Is Nothing Then
Else
WebBrowser1.Document.All("Fn").SetAttribute("value", textbox1.text)
End If
but you can't make a bot for the site trust me ive tried it and you will run into to many problems and that's vb 2008 code here is c# Code: # {
# // ERROR: Not supported in C#: OnErrorStatement
# if (WebBrowser1.Document.All("fname") == null) {
#
# }
# else {
#
# WebBrowser1.Document.All("fname").SetAttribute("value", textbox1.text);
# }
#
#
# if (WebBrowser1.Document.All("firstname") == null) {
#
# }
# else {
#
# WebBrowser1.Document.All("firstname").SetAttribute("value", textbox1.text);
# }
#
# if (WebBrowser1.Document.All("Fn") == null) {
#
# }
# else {
#
# WebBrowser1.Document.All("Fn").SetAttribute("value", textbox1.text);
# }
# }
|
| | |
| | #5 (permalink) |
| Kyahahaha! The world is mine! | Another thing you could do is some element array thing but I don't feel like going into details. I would not go for the bunches of if else statements as that would be really complicated. Make a class that tries all the ids in a given array. |
| | |
| | #8 (permalink) |
| Member Join Date: Feb 2009
Posts: 46
Reputation: 1 ![]() cBay Rating: | Thanks. That was what I was looking for. I will PM you the 1 month xbox live code. EDIT: I ordered it a few minutes ago when I got this idea and I don't know when I will get it in my email, on average I get my codes in 5 hours but I hope this will be faster. Last edited by adem3311; 04-09-2009 at 04:49 PM.. |
| | |
| | #10 (permalink) | |
| Member Join Date: Feb 2009
Posts: 46
Reputation: 1 ![]() cBay Rating: | Quote:
![]() | |
| | |
![]() |
| Tags |
| c#, fields, fill, request, reward, script |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Prizerebel Reward Q | boomyshoe | Surveys | 12 | 11-25-2008 02:01 AM |
| I'll fill referrals with paypal | mrgrtvle | Introduce Yourself | 1 | 10-06-2008 08:54 AM |