Valhalla Legends Forums Archive | Battle.net Bot Development | Channel Name Display?

AuthorMessageTime
titan0060
Ok, i've been messing around with a Clean Slate Bot, can someone help me with this?

I want it to say the channel it's in above the channel list. I cant get the label to work.
August 22, 2004, 4:14 PM
CrAz3D
[code]Sub CleanSlateBot1_OnChannel(ChannelName as string)
Label1.Caption = ChannelName
end sub
[/code]

That should be close to working...
August 22, 2004, 4:23 PM
Stealth
If you have trouble with Labels, you should probably drop your bot project temporarily and come back to it after you've learned somewhat more of the way Visual Basic works.
August 22, 2004, 5:06 PM
Antichrist
I dont think he's having a problem with the Label Stealth. It's more of the code in getting the channel name to appear on the label.
August 22, 2004, 6:17 PM
Myndfyr
[quote author=Antichrist link=board=17;threadid=8314;start=0#msg76817 date=1093198629]
I dont think he's having a problem with the Label Stealth. It's more of the code in getting the channel name to appear on the label.
[/quote]

[me=MyndFyre]applauds Antichrist for really getting to the crux of the issue.[/me]
August 22, 2004, 6:42 PM
Newby
Find the correct event name :|
August 22, 2004, 8:57 PM
titan0060
[quote author=CrAz3D link=board=17;threadid=8314;start=0#msg76797 date=1093191791]
[code]Sub CleanSlateBot1_OnChannel(ChannelName as string)
Label1.Caption = ChannelName
end sub
[/code]

That should be close to working...
[/quote]

That does absolutly nothing
August 22, 2004, 9:00 PM
TangoFour
This code *assumes* the label that is meant to display your channel name is called Label1

Surely you understood that?
August 22, 2004, 9:13 PM
titan0060
jeez, im dumb but im not that dumb.
August 22, 2004, 9:27 PM
titan0060
besides, label1 was the name of the label anyways...
August 22, 2004, 9:27 PM
shadypalm88
[quote author=TangoFour link=board=17;threadid=8314;start=0#msg76870 date=1093209218]
This code *assumes* the label that is meant to display your channel name is called Label1

Surely you understood that?
[/quote]It also assumes your CleanSlateBot is named CleanSlateBot1.

But honestly, if you have to ask these types of questions, don't make a bot. Please.
August 22, 2004, 9:45 PM
ChR0NiC
[quote author=titan0060 link=board=17;threadid=8314;start=0#msg76866 date=1093208438]
That does absolutly nothing
[/quote]

[code]
Private Sub CleanSlateBot1_JoinedChannel(ByVal ChannelName As String, ByVal Flags As Long, SimulatedEvent As Boolean)

Label1.Caption = ChannelName

End Sub
[/code]

There, I did the work for you.
August 22, 2004, 9:46 PM
titan0060
Thanks, now it works
August 22, 2004, 10:24 PM
ChR0NiC
[quote author=titan0060 link=board=17;threadid=8314;start=0#msg76892 date=1093213482]
Thanks, now it works
[/quote]

Once a problem is solved

[code]
ChannelTitle = ChannelTitle & " [SOLVED]"
[/code]

Meaning change the title, so people know it's been solved so they don't continue to post here.
August 22, 2004, 10:48 PM
R.a.B.B.i.T
[quote author=ChR0NiC link=board=17;threadid=8314;start=0#msg76883 date=1093211201]
[quote author=titan0060 link=board=17;threadid=8314;start=0#msg76866 date=1093208438]
That does absolutly nothing
[/quote]

[code]
Private Sub CleanSlateBot1_JoinedChannel(ByVal ChannelName As String, ByVal Flags As Long, SimulatedEvent As Boolean)

Label1.Caption = ChannelName

End Sub
[/code]

There, I did the work for you.
[/quote]What work?
August 23, 2004, 5:32 AM
ChR0NiC
[quote author=R.a.B.B.i.T link=board=17;threadid=8314;start=0#msg76955 date=1093239132]
What work?
[/quote]

The fact that all he had to do was copy and paste the code into his bot. I gave him the answer, jeez Rabbit don't be so negative.
August 23, 2004, 6:26 PM
Myndfyr
[quote author=ChR0NiC link=board=17;threadid=8314;start=15#msg77016 date=1093285562]
[quote author=R.a.B.B.i.T link=board=17;threadid=8314;start=0#msg76955 date=1093239132]
What work?
[/quote]

The fact that all he had to do was copy and paste the code into his bot. I gave him the answer, jeez Rabbit don't be so negative.
[/quote]

I believe RaBBiT was just trying to point out that there really was no work involved. You drag a label to the form, and you type (more or less) one line of code, which is really just a programmatic assignment of something you could have done through the visual designer (assignment of a caption to a label).
August 23, 2004, 6:42 PM
Gangz
[quote author=Yegg link=board=17;threadid=8314;start=15#msg77028 date=1093290606]
People stop continuing this post. He already figured it out.
[/quote]

He figured it out, or Chronic figured it out?
August 24, 2004, 8:25 AM

Search