Valhalla Legends Forums Archive | Battle.net Bot Development | The CSB VBScript PHP Webbot, v2!

AuthorMessageTime
JoeTheOdd
Yeah. Found a solution to the whole screen blaking problem. Use echo();! Next problem..

The browser is in charge of firing ActiveX controls events, but the server is in charge of parsing PHP. How would I go about using PHP in a ActiveX event?

[s]http://www.javaop.com/~joe/webscb.txt[/s]
http://www.javaop.com/~joe/WebCSB.txt
September 6, 2005, 1:06 AM
JoeTheOdd
[pre]joe@darkside:~/public_html$ rm webscb.txt CSB.php
rm: cannot remove `CSB.php': No such file or directory[/pre]

RIP CSB WebBot.

I tried to rename it. =(

EDIT -
Some times I just want to hug "work offline"
September 9, 2005, 11:11 PM
JoeTheOdd
Forget PHP. I FINALLY figured it out. JavaScript's document.write. This BETTER work, or else I think I'll just give up.
November 11, 2005, 9:36 PM
Spht
*Confused*
November 11, 2005, 9:47 PM
Yegg
Nice work, Joe.
November 11, 2005, 10:43 PM
Myndfyr
That still means you still have to have the bot on the client side.  The client connects to Battle.net, not the server.  And you have to have a low-security IE configuration to run that particular ActiveX control.

Why would you do this when you could just run a regular bot?
November 11, 2005, 11:21 PM
Yegg
[quote author=MyndFyre link=topic=12723.msg133654#msg133654 date=1131751281]
That still means you still have to have the bot on the client side.  The client connects to Battle.net, not the server.  And you have to have a low-security IE configuration to run that particular ActiveX control.

Why would you do this when you could just run a regular bot?
[/quote]
Maybe he's simply experimenting? Just an assumption though.
November 11, 2005, 11:36 PM
JoeTheOdd
[quote author=MyndFyre link=topic=12723.msg133654#msg133654 date=1131751281]
That still means you still have to have the bot on the client side. The client connects to Battle.net, not the server. And you have to have a low-security IE configuration to run that particular ActiveX control.

Why would you do this when you could just run a regular bot?
[/quote]

For bragging rights. =p

EDIT -
@Spht:

Basically, I'm making a HTML project that will create a CleanSlateBot, connect it, and handle events all through a website. I'm not doing all that great of a job at it, though.
November 12, 2005, 12:26 AM
Quarantine
who wants to brag about this =P. Kidding. :)
Uh, nice job? :p
November 12, 2005, 12:34 AM
kamakazie
I could have sworn this problem was already solved. At least I remember giving a solution.
November 12, 2005, 12:42 AM
FrOzeN
Eh, Joe. If your still doing this here's my 2 cents.

Look into the JavaScript for .innerHTML so you can change the body html inside <div>'s without page reloading.

The way I would do this is have a invisible iFrame which gets reloaded to parse the info back and forth etc.. Then the data it gets parsed back into the iFrame use JavaScript .innerHTML to read it and parse it into other <div>'s.

This way you could connect your bot, parse events etc.. and the whole time it will seem as if the page never reloaded.
November 12, 2005, 1:52 AM
Spht
*Confused*

"Webbot"?  v2?  Where's v1??
November 12, 2005, 3:03 AM
JoeTheOdd
I don't quite remember why I put v2. That was a long time ago =p

EDIT -
[quote author=dxoigmn link=topic=12723.msg133672#msg133672 date=1131756169]
I could have sworn this problem was already solved. At least I remember giving a solution.
[/quote]

THANK YOU. I never saw that.

EDIT -
Time to upload + test the little bugger. *takes big breath, uploads, and heads upstairs*
November 12, 2005, 3:09 AM
FrOzeN
Just noticed that it's already using .innerHTML. :P
November 12, 2005, 3:44 AM
JoeTheOdd
Ah, found a major problem. Arguments aren't being passed, and therefore subroutines that require arguments aren't firing. This shouldn't take long.

The bot joins the home channel, and a couple of events actually work. Its pretty sweet.

EDIT -
Ugh..
November 13, 2005, 9:38 AM
FrOzeN
On this link you forgot to close the href= tags with the second quotation mark. Making the 'Use the Bot' link invisible and also screwing up the address of the 'View Source' link.

[EDIT] Also the code [glow=red,2,300]<link rel="stylesheet" type="text/css" href="Stylesheet.css" />[/glow], should be inside the <head> tags.
November 13, 2005, 10:07 AM
rabbit
Also, in the head comment, you have "* /", thus commenting the entire script.  Also, why not just use HTML comment tags (correctly)?

Later on (line 32), you have an incorrect HTML comment tag closer, it should be "//-->".
[update]  Same on line 137

Line 34 has an extra quote, making the rest of the script screwy.  DEBUG MAN!!

Lines 58 and 62 are missing PHP segment closers.

PHP uses a period for string concatenation, not an ampersand.

[edit]
You aren't in x86 anymore.
November 13, 2005, 3:07 PM
kamakazie
[quote author=rabbit link=topic=12723.msg133853#msg133853 date=1131894431]
Later on (line 32), you have an incorrect HTML comment tag closer, it should be "//-->".
[/quote]

Umm...HTML comments are in the form <!-- comment -->  Looks like someone is trying to inject c++-style comments into html.
November 13, 2005, 11:09 PM
rabbit
Every syntax highlighter I've used only closed off comments after //--> :\
O well.
November 14, 2005, 12:01 AM
Myndfyr
[quote author=rabbit link=topic=12723.msg133893#msg133893 date=1131926469]
Every syntax highlighter I've used only closed off comments after //--> :\
O well.
[/quote]

That's for Javascript.  To support older browsers, Javascript specified that Javascript code should be contained within multiline HTML comments, and that when <!-- occured within <script> tags it should only be considered a single-line comment.  Also, so that --> wasn't tried to be parsed as Javascript, we comment it out with // first.
[code]
<script language="JavaScript">
<!-- Hide this code from older browsers
// blarg
alert("Boo!");
// End hiding and don't use the JS parser for this line -->
</script>
[/code]
November 14, 2005, 7:59 AM

Search