Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Blade_360 on December 19, 2002, 01:53 PM

Title: Really dumb question so laugh at me and answer plz
Post by: Blade_360 on December 19, 2002, 01:53 PM
:-[Ok I'm using CleanSlateBot.ocx I've gotten everything programmed except for the Connect and disconnect button
I have:

Private Sub Connect_Click()
    CleanSlateBot1.Connect
End Sub

But it won't connect for some reason when I click the button nothing happens ??? could someone give me the correct code? Thanks. :)

Edit - Please use the [ code ] and [ /code ] tags when posting source code samples in the future. Thanks.
Title: Re: Really dumb question so laugh at me and answer
Post by: Skywing on December 20, 2002, 03:31 AM
I'd guess that you haven't set the Accept value of the control correctly.
Title: Re: Really dumb question so laugh at me and answer
Post by: Blade_360 on December 20, 2002, 12:45 PM
Well Simi helped me with that what I'm having trouble with now is the Send stuff heres what I got
Private Sub Send_Click()
CleanSlateBot1.Send chattxt.Text
End Sub
I know thats wrong but if it wouldn't be too much trouble if they could give me the correct code.
Title: Re: Really dumb question so laugh at me and answer
Post by: l)ragon on December 20, 2002, 01:18 PM
http://cuphead.valhallalegends.com/ocx_me.txt

This may help.

~l)ragon
Title: Re: Really dumb question so laugh at me and answer
Post by: Blade_360 on December 20, 2002, 02:53 PM
I've used that like a billion times and read it over and over. Doesn't have all the stuff I want though
Title: Re: Really dumb question so laugh at me and answer
Post by: l)ragon on December 20, 2002, 04:42 PM
Private Sub Connect_Click()
    CleanSlateBot1.Disconnect
    CleanSlateBot1.Connect
End Sub

should work fine unless cup changed his ocx in someway 8\

~l)ragon