• Welcome to Valhalla Legends Archive.
 

Channel Name Display?

Started by titan0060, August 22, 2004, 11:14 AM

Previous topic - Next topic

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.

CrAz3D

Sub CleanSlateBot1_OnChannel(ChannelName as string)
Label1.Caption = ChannelName
end sub


That should be close to working...
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

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.
- Stealth
Author of StealthBot

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.

MyndFyre

Quote from: Antichrist on August 22, 2004, 01:17 PM
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.

* MyndFyre applauds Antichrist for really getting to the crux of the issue.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Newby

Find the correct event name :|
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

titan0060

Quote from: CrAz3D on August 22, 2004, 11:23 AM
Sub CleanSlateBot1_OnChannel(ChannelName as string)
Label1.Caption = ChannelName
end sub


That should be close to working...

That does absolutly nothing

TangoFour

This code *assumes* the label that is meant to display your channel name is called Label1

Surely you understood that?

titan0060

jeez, im dumb but im not that dumb.

titan0060

besides, label1 was the name of the label anyways...

shadypalm88

Quote from: TangoFour on August 22, 2004, 04:13 PM
This code *assumes* the label that is meant to display your channel name is called Label1

Surely you understood that?
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.

ChR0NiC

Quote from: titan0060 on August 22, 2004, 04:00 PM
That does absolutly nothing


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

Label1.Caption = ChannelName

End Sub


There, I did the work for you.

titan0060


ChR0NiC

Quote from: titan0060 on August 22, 2004, 05:24 PM
Thanks, now it works

Once a problem is solved


ChannelTitle = ChannelTitle & " [SOLVED]"


Meaning change the title, so people know it's been solved so they don't continue to post here.

R.a.B.B.i.T

Quote from: ChR0NiC on August 22, 2004, 04:46 PM
Quote from: titan0060 on August 22, 2004, 04:00 PM
That does absolutly nothing


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

Label1.Caption = ChannelName

End Sub


There, I did the work for you.
What work?