Cheating Network
 
 

Go Back   Cheating Network > Programming > Bot Makers
Reload this Page [request with reward] C# script to fill in fields



Bot Makers

This is a discussion about [request with reward] C# script to fill in fields within the Bot Makers section, where you will These are the public forums for bot makers to interact with others! Got an idea for a bot and don't know how to make it into code? Post it here!



Reply
 
LinkBack Thread Tools Display Modes
Old 04-09-2009, 04:10 PM   #1 (permalink)
Member
 
Join Date: Feb 2009
Posts: 46
Reputation: 1
adem3311 is an unknown quantity at this point

cBay Rating:
Talking [request with reward] C# script to fill in fields

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
adem3311 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 04-09-2009, 04:12 PM   #2 (permalink)
Kyahahaha! The world is mine!
 
Dr. Wily's Avatar
 
Join Date: Dec 2007
Posts: 5,438
Reputation: 489
Dr. Wily is a glorious beacon of lightDr. Wily is a glorious beacon of lightDr. Wily is a glorious beacon of lightDr. Wily is a glorious beacon of lightDr. Wily is a glorious beacon of light

cBay Rating:

S7 Scrivener Epsilon 

Send a message via AIM to Dr. Wily Send a message via MSN to Dr. Wily
Default

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);
__________________

If you feel generous: Donate!

Last edited by Dr. Wily; 04-09-2009 at 04:35 PM..
Dr. Wily is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-09-2009, 04:16 PM   #3 (permalink)
Member
 
Join Date: Feb 2009
Posts: 46
Reputation: 1
adem3311 is an unknown quantity at this point

cBay Rating:
Default

Quote:
Originally Posted by Slashmolder View Post
Ha I got this.
great
I might be able to finish beta 2 of my bot soon!
adem3311 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-09-2009, 04:23 PM   #4 (permalink)
Member
 
Join Date: Dec 2008
Posts: 80
Reputation: -14
bobbobob can only hope to improve

cBay Rating:
Default

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
so when the id pops up it will fill in the info 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);
#     }
# }
cause in rewards1 etc sites the offers textbox's are going to have different id's to you just make a list of the id's and your good to go
bobbobob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-09-2009, 04:27 PM   #5 (permalink)
Kyahahaha! The world is mine!
 
Dr. Wily's Avatar
 
Join Date: Dec 2007
Posts: 5,438
Reputation: 489
Dr. Wily is a glorious beacon of lightDr. Wily is a glorious beacon of lightDr. Wily is a glorious beacon of lightDr. Wily is a glorious beacon of lightDr. Wily is a glorious beacon of light

cBay Rating:

S7 Scrivener Epsilon 

Send a message via AIM to Dr. Wily Send a message via MSN to Dr. Wily
Default

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.
__________________

If you feel generous: Donate!
Dr. Wily is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-09-2009, 04:33 PM   #6 (permalink)
Member
 
Join Date: Feb 2009
Posts: 46
Reputation: 1
adem3311 is an unknown quantity at this point

cBay Rating:
Default

Quote:
Originally Posted by Slashmolder View Post
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);
What is the "email" at the end for? This would be perfect, but with that "email" at the end there is an error and when i delete it it has an overload error.
adem3311 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-09-2009, 04:35 PM   #7 (permalink)
Kyahahaha! The world is mine!
 
Dr. Wily's Avatar
 
Join Date: Dec 2007
Posts: 5,438
Reputation: 489
Dr. Wily is a glorious beacon of lightDr. Wily is a glorious beacon of lightDr. Wily is a glorious beacon of lightDr. Wily is a glorious beacon of lightDr. Wily is a glorious beacon of light

cBay Rating:

S7 Scrivener Epsilon 

Send a message via AIM to Dr. Wily Send a message via MSN to Dr. Wily
Default

I'm just stupid. Put firstname there not email.
__________________

If you feel generous: Donate!
Dr. Wily is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-09-2009, 04:37 PM   #8 (permalink)
Member
 
Join Date: Feb 2009
Posts: 46
Reputation: 1
adem3311 is an unknown quantity at this point

cBay Rating:
Default

Quote:
Originally Posted by Slashmolder View Post
I'm just stupid. Put firstname there not email.
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..
adem3311 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-09-2009, 04:44 PM   #9 (permalink)
Member
 
Join Date: Dec 2008
Posts: 80
Reputation: -14
bobbobob can only hope to improve

cBay Rating:
Default

no offense but if you didn't know a simple code like that or how to fix the code your not going to know how to make a bot for rewards1 etc
bobbobob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-09-2009, 04:47 PM   #10 (permalink)
Member
 
Join Date: Feb 2009
Posts: 46
Reputation: 1
adem3311 is an unknown quantity at this point

cBay Rating:
Default

Quote:
Originally Posted by bobbobob View Post
no offense but if you didn't know a simple code like that or how to fix the code your not going to know how to make a bot for rewards1 etc
It's my first program. I'm also a very weird person. I released a beta with my first post and everyone thought it was a virus or keylogger. And if I offer rewards for such a simple codes think of what I might do in the future
adem3311 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-09-2009, 07:12 PM   #11 (permalink)
Kyahahaha! The world is mine!
 
Dr. Wily's Avatar
 
Join Date: Dec 2007
Posts: 5,438
Reputation: 489
Dr. Wily is a glorious beacon of lightDr. Wily is a glorious beacon of lightDr. Wily is a glorious beacon of lightDr. Wily is a glorious beacon of lightDr. Wily is a glorious beacon of light

cBay Rating:

S7 Scrivener Epsilon 

Send a message via AIM to Dr. Wily Send a message via MSN to Dr. Wily
Default

You can keep your xbox live code... I don't really need it.
__________________

If you feel generous: Donate!
Dr. Wily is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-09-2009, 11:40 PM   #12 (permalink)
Member
 
Join Date: Feb 2009
Posts: 46
Reputation: 1
adem3311 is an unknown quantity at this point

cBay Rating:
Default

Quote:
Originally Posted by Slashmolder View Post
You can keep your xbox live code... I don't really need it.
My xbox is broken, what do i do with this code now?
adem3311 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
c#, fields, fill, request, reward, script


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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




Powered by vBulletin
Copyright © 2000-2008 Jelsoft Enterprises Limited.
Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.