• Welcome to Valhalla Legends Archive.
 

Channel List

Started by FLiPPY_, August 04, 2003, 07:38 PM

Previous topic - Next topic

FLiPPY_

Ok.. I need help with the channel list now. I've looked at some sources but they didn't seem to help. I Have all of the images.. but I need the
Private Sub CleanSlateBot1_ChannelList(ChannelName As String)

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

Private Sub CleanSlateBot1_UserInChannel(ByVal UserName As String, ByVal Flags As Long, ByVal Message As String, ByVal Ping As Long, ByVal Product As String, StatUpdate As Boolean, SimulatedEvent As Boolean)

So it shows the icons for the channel list. I would want it to Be Icon, Username, Ping
:-)

-I use CSB

DarkMinion

I'm sorry, but can't you do *anything* on your own?  :-\

FLiPPY_

#2
Yes.. I did do stuff. Technically.. I got the bot to connect.. because I was looking over code and I realized I forgot to add
CleanSlateBot1.Product = strProduct

For the add text thing. I accidently switched two things around.

So if you really think about it.. that was the only thing I needed help for.. other then this. Sorry for being a newbie to CleanSlateBot.

FuZe

Again, I don't know much about csb but try using the list view control (Add components (type ctrl + t) add Microsoft Common Controls 5.0 (SP2).  The listview control can add icons, text and other stuff.  Check out http://msdn.microsoft.com/ and search listview :|

Soul Taker

This has nothing to do with CSB at all.  This is basic VB stuff.

FLiPPY_

I don't think you guys got the point.. So i'll explain again. I have a the channel list made. I'm having trouble with the code that it has to have to add Icons, Username, and Ping. So when the bot joins that channel.. it shows the peopple already in there. Same thing with userjoin and userleave. (Only it adds a user or subtracts.)

I hope you get my point.

UserLoser

#6
Quote from: Soul Taker on August 04, 2003, 10:40 PM
This has nothing to do with CSB at all.  This is basic VB stuff.
I think he gets the point.

FLiPPY_

Damn.. channel list must be hard if no one can give me a code.. or wright a tutorial. (I read cupheads) Do you know any bot that uses CSB and has a source out?

hismajesty

#8
Quote from: FLiPPY_ on August 05, 2003, 09:46 AM
I don't think you guys got the point.. So i'll explain again. I have a the channel list made. I'm having trouble with the code that it has to have to add Icons, Username, and Ping. So when the bot joins that channel.. it shows the peopple already in there. Same thing with userjoin and userleave. (Only it adds a user or subtracts.)

I hope you get my point.

First Draw The ListView On The Form
To Add The Pics Right Click On The ListView You Can Change The Stuff In There (Options, Pictures,Battle.net Icons, etc)
I'm not gonna give you the whole code dealing with the icons nor the module..anyway...

To Add To The ListView Do

ListView1.ListItems.Add

Example:

If icon <> ICON_GAVEL Then
   With Form1.lvChannel.ListItems.Add(, , Username, , icon)
   .ListSubItems.Add , , , lagicoN
   End With

Note: That's Under The User Join Thingy In CSB..But Don't Just Put That Code In And Expect It To Work...You'll Need To Write A Module...
-----------------
Removing From Listview...This Is REALLLLLY Hard

ListView1.ListItems.Remove

*gasp*

Example:

Form1.lvChannel.ListItems.Remove Form1.lvChannel.FindItem(Username).Index

-----------------------------
Have you thought of enrolling in a vb class...or reading a book by any chance?
www.vbexplorer.com
------------------------------
Edit:
Quote
Damn.. channel list must be hard if no one can give me a code.
Maybe because we're not making YOUR bot...you are..

Grok

Quote from: FLiPPY_ on August 05, 2003, 09:46 AM
I don't think you guys got the point.. So i'll explain again. I have a the channel list made. I'm having trouble with the code that it has to have to add Icons, Username, and Ping. So when the bot joins that channel.. it shows the peopple already in there. Same thing with userjoin and userleave. (Only it adds a user or subtracts.)

I hope you get my point.

It may surprise you to know that we all perfectly well understand your point.  You have CSB dropped on a form, and have created the event procedures by clicking on them in the drop-down.  But since you have no clue how to write Visual Basic code, you don't know what to do next.  Even if you knew VB, you haven't given any thought to the algorithm needed to read the parameters and convert them to display elements in your GUI.

Failing to grasp even the smallest clue, you are attempting to blame everyone else for your ignorance.  Most everyone here sees it in most every one of your posts.

Sorry, but it is true.

FLiPPY_

Wow you figured me out
:-\

hismajesty

It wasn't hard to do so FLiPPY_ .

CrAz3D

What is
Quotea code
?
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 ...

DarkMinion

CSB has ruined bot programming.