• Welcome to Valhalla Legends Archive.
 

Help me /w this please?

Started by Twitch, July 25, 2004, 03:08 PM

Previous topic - Next topic

Twitch

Hi.  I have been learning Visual Basic 6 for some time now and these past few months ive been studying how bots are made thx to these forums/site :D.  

Anyways, lets get to the point.  I have recently started making a very basic chat bot using CSB (yes im a newb, wanna fight about it?) and i would like to enhance/add some new features.

For now i just ask this..   I would like to add another label above the list of people who are in the channel (lvChannel) and i have looked at other sources but that doesnt really help..    can someone help me here ?

warz

You'd like to add a label above your list view? Such as a label saying "X number of people in Y channel" ? Just drop a label, or text box or whatever you like above it, and set the text accordingly.

Twitch

well i don't really know how..   i mean i have an idea of how to code it but its a blury idea lol..    I appreciate the help though warz.

Maddox

You said you have been learning VB6, but yet you don't know how to make a simple label. Maybe you should start back at square one.
asdf.

warz

#4
Well, in your user_join() event, or user_leave() event, id suggest doing something along the lines of


lblLabelThing.caption = lstListview.count & " users in " & botinfo.current_channel


.. or something. General idea.

Edit:

Quote from: Maddox on July 25, 2004, 03:44 PM
You said you have been learning VB6, but yet you don't know how to make a simple label. Maybe you should start back at square one.

I also agree.   :-X

warz

There's some listview function that gives the amount of items in it. MSDN it. I don't remember it.

Twitch

well thanks warz..    you other people seem to be posting nonsense..    i suggest you shh ?

i work like all the time so i really didnt learn much of vb lol
i just like coding /w what i know..  even though most of it is source.

anyways, thx again warz

Warrior

Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

hismajesty

Quote from: Twitch on July 25, 2004, 06:07 PMyou other people seem to be posting nonsense..

Like what?

Quote from: Twitch on July 25, 2004, 06:07 PMi suggest you shh ?

What, you don't know if you suggest it or not?

Quote from: Twitch on July 25, 2004, 06:07 PMi work like all the time so i really didnt learn much of vb lol

If you've been learning VB for 'a while' that wouldn't matter, most first chapters demonstrate how to drop a label on the form.

Quote from: Twitch on July 25, 2004, 06:07 PMi just like coding /w what i know

Good, now go learn more! ;)

Quote from: Twitch on July 25, 2004, 06:07 PM..  even though most of it is source.

Brilliant! Source code that is source...

Twitch

why do you people get so serious ?...    damn.  take a joke?

yes i know how to drop a label man..  i just dont know how to code it so it actually shows x people and y channel like warz said..  

and if no one will tell me then i'll just go learn more....    

T h e   E n d

ChR0NiC

#10
[Kp edit: deleted direct attack.  However, I tend to agree with the frustration the attack attempted to convey.]

When you join a channel....using CSB you receive information in IIRC CSB1_JoinedChannel. That has your channel name in it, set that as your current channel by defining the variable as a public variable. For example Public CurrentChan As String.


Private Sub CleanSlateBot1_JoinedChannel(ChannelName As String)

CurrentChan = ChannelName

End Sub


Then I am guessing you have a channel list....so do this.


Private Sub CleanSlateBot1_JoinedChannel(ChannelName As String)

CurrentChan = ChannelName

lblCurrentChan.Caption = CurrentChan & "(" & ListView1.ListItems.Count & ")"

End Sub


I don't know how much simpler it can be but, if you still don't get it, PLEASE I BEG OF YOU, restart your VB learning.

hismajesty

Quotewhy do you people get so serious ?...    damn.  take a joke?

...what was the joke?

Warrior

He attempted to turn his situation around to where he said it was a joke when in reality he was actually quite serious but when he saw the severity of our reactions torwards him the only logical thing he came up with at the time was "damn take a joke" .
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Grok

#13
Quote from: ChR0NiC on July 25, 2004, 11:58 PM
[Kp snip - removed it from original post, so dropping it from here too.  Chr0nic has obviously seen this response, so I don't mind cleaning the message.  See also my response to Grok, two posts down.]

This is an unaaceptable response on any vL-hosted forum but this is botdev, so maybe they're fine with it here.  Bring that attitude to even our Trash Can, and it will only be until I see it.

When someone is trying to learn, no matter how much of a beginner they are, either you try to help them, or you sit out.  In this case, you may think your explanation if perfectly good, because you understand it, why can't they?

Know what the best teachers and professors know -- that one approach does not work for every student.  If you really want to help, and someone doesn't understand your first attempt, try another tact.  Yelling and cussing is not another acceptable tact for education, unless you're in Navy Seal training maybe.

Don't blame the student for your failure to be a good teacher.

ChR0NiC

#14
Quote from: Grok on July 27, 2004, 12:47 PM
Don't blame the student for your failure to be a good teacher.

Sorry, I just don't like being flamed after I am nice enough to help him. But I apologize, I shall be much more nicer from now on