Can Someone Help Me In Making A Bot?

Status
Not open for further replies.

ZeroAbstract

Member
Original poster
member
Joined
Aug 4, 2011
Posts
33
Reaction score
1
Points
0
Location
Above Ground
I intend to make a program in which they work to convert the normal url to adf.ly link..my idea is to use the api documentation of adf.ly tool to convert the link..the problem now is that I do not know where should I start to make this boat.

other than that I have made some study of how it works using the javascript below

javascript:void(location.href='http://api.adf.ly/api.php?key=9abfacd7fa1434865db9f0deddc69a1f&uid=adf.ly uid paste here&advert_type=int&domain=adf.ly&url='+encodeURIComponent(location.href))

you can make this javascript as a bookmark in the browser. But you must enter your adf.ly uid for its to work..Then the next time you want to create an adf.ly link, just visit the page and hit the bookmark. it will change the link to adf.ly automatically without requiring users to log in
 
K

KamaluNg

Guest
First. Get a language you can code with.

Try Vb.Net to start. http://www.microsoft.com/visualstudio/en-us/try

Then setup a webbrowser, 2 buttons, & 2 textboxs.

For the code you can make the button navigate the webbrowser to the text in textbox1.

For example:

private sub button1_click etc...
webbrowser1.navigate(textbox1.text)
end sub

private sub button2_click etc...
webbrowser1.navigate("javascriptcodehere" + textbox2.text " "therestofthejavascript")
end sub

just a small example of what you can do with it.
 

Ace12

Senior
senior
Joined
May 2, 2011
Posts
1,013
Reaction score
369
Points
91
Location
Toronto
Sup, I made a quick one for you. If you need any help pm me.

Download Exe: http://www.mediafire.com/?hrcmlch533vo3kb
Source Code: http://www.mediafire.com/?ca6vd3675zsl1g6

AbWmIf.png


Made by Visual Basic Express

Download Link: http://bit.ly/hbu07s
 
  • Like
Reactions: ZeroAbstract

Ace12

Senior
senior
Joined
May 2, 2011
Posts
1,013
Reaction score
369
Points
91
Location
Toronto
lol so much for teaching him xD

nice tho:D

I actually wrote the whole code in here, but then I am like fuck it, I will make the bot and give him cuz I don't want to confuse him as he might be new to programming.
 

ZeroAbstract

Member
Original poster
member
Joined
Aug 4, 2011
Posts
33
Reaction score
1
Points
0
Location
Above Ground
thank you to all~ now i will learn the code n how to use it..its look nice~ n i have installed the vb.net express~~ =)

gLTr3.jpg


why this happen when im running the converter?
 
K

KamaluNg

Guest
I actually wrote the whole code in here, but then I am like fuck it, I will make the bot and give him cuz I don't want to confuse him as he might be new to programming.

Haha. I probably would've too xD

thank you to all~ now i will learn the code n how to use it..its look nice~ n i have installed the vb.net express~~ =)

gLTr3.jpg


why this happen when im running the converter?

I'm not sure which error this is but it could be that you don't have the latest .Net framework.

But sometimes an error does occur because a mistake or lack of exceptions in the code.
 

Ace12

Senior
senior
Joined
May 2, 2011
Posts
1,013
Reaction score
369
Points
91
Location
Toronto
hmm not sure why it is giving that error. The whole converter is only 3 lines of code. I've tested it and it worked fine, but like KamalNg said it could be that you don't have the latest .Net Framework.

You can get it here: http://www.microsoft.com/net
 

ZeroAbstract

Member
Original poster
member
Joined
Aug 4, 2011
Posts
33
Reaction score
1
Points
0
Location
Above Ground
ok i have tried it..i have update my .net framework...thnx coz it work beautifully..this is my prototype screenshot below but i fail on make it convert beautifully..emm

hof0F.jpg
 

ZeroAbstract

Member
Original poster
member
Joined
Aug 4, 2011
Posts
33
Reaction score
1
Points
0
Location
Above Ground
im using ace12 code he give to me emm
Code:
WebBrowser1.Document.GetElementById("url").SetAttribute("Value", TextBox1.Text)

WebBrowser1.Document.GetElementById("shrink_button").InvokeMember("click")

        Dim myElement As HtmlElement
        myElement = WebBrowser1.Document.GetElementById("url2")
        Dim Value As String = myElement.GetAttribute("value")
        TextBox2.Text = Value

im editing it for a little bit..but still doesnt work emm n dunno know on how using progress bar...~
 
K

KamaluNg

Guest
The code itself looks proper. Correct for your purpose, I wouldn't know without getting into your project. However for your progressbar. Just place this after every action its doing.

I believe it's:
Code:
progressbar1.value += 1

Or

Code:
progressbar1.value = progressbar1.value + 1
 

ZeroAbstract

Member
Original poster
member
Joined
Aug 4, 2011
Posts
33
Reaction score
1
Points
0
Location
Above Ground
i only know about c++ only now learning on using vb coding emm..n i have read ebook about vb programming..and still..need more reading on this coz i dun understand that much emm
 
Status
Not open for further replies.