Author | Message | Time |
---|---|---|
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 ? | July 25, 2004, 8:08 PM |
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. | July 25, 2004, 8:33 PM |
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. | July 25, 2004, 8:41 PM |
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. | July 25, 2004, 8:44 PM |
warz | Well, in your user_join() event, or user_leave() event, id suggest doing something along the lines of [code] lblLabelThing.caption = lstListview.count & " users in " & botinfo.current_channel [/code] .. or something. General idea. Edit: [quote author=Maddox link=board=17;threadid=7884;start=0#msg72492 date=1090788295] 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. [/quote] I also agree. :-X | July 25, 2004, 8:46 PM |
warz | There's some listview function that gives the amount of items in it. MSDN it. I don't remember it. | July 25, 2004, 9:38 PM |
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 | July 25, 2004, 11:07 PM |
Quarantine | [quote author=Twitch link=board=17;threadid=7884;start=0#msg72529 date=1090796866] i really didnt learn much of vb lol [/quote] Dont make a bot. | July 25, 2004, 11:53 PM |
hismajesty | [quote author=Twitch link=board=17;threadid=7884;start=0#msg72529 date=1090796866]you other people seem to be posting nonsense.. [/quote] Like what? [quote author=Twitch link=board=17;threadid=7884;start=0#msg72529 date=1090796866]i suggest you shh ?[/quote] What, you don't know if you suggest it or not? [quote author=Twitch link=board=17;threadid=7884;start=0#msg72529 date=1090796866]i work like all the time so i really didnt learn much of vb lol[/quote] 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 author=Twitch link=board=17;threadid=7884;start=0#msg72529 date=1090796866]i just like coding /w what i know [/quote] Good, now go learn more! ;) [quote author=Twitch link=board=17;threadid=7884;start=0#msg72529 date=1090796866].. even though most of it is source.[/quote] Brilliant! Source code that is source... | July 26, 2004, 1:34 AM |
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 | July 26, 2004, 3:02 AM |
ChR0NiC | [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. [code] Private Sub CleanSlateBot1_JoinedChannel(ChannelName As String) CurrentChan = ChannelName End Sub [/code] Then I am guessing you have a channel list....so do this. [code] Private Sub CleanSlateBot1_JoinedChannel(ChannelName As String) CurrentChan = ChannelName lblCurrentChan.Caption = CurrentChan & "(" & ListView1.ListItems.Count & ")" End Sub [/code] 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. | July 26, 2004, 4:58 AM |
hismajesty | [quote]why do you people get so serious ?... damn. take a joke?[/quote] ...what was the joke? | July 26, 2004, 5:17 AM |
Quarantine | 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" . | July 26, 2004, 5:48 PM |
Grok | [quote author=ChR0NiC link=board=17;threadid=7884;start=0#msg72609 date=1090817883] [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.] [/quote] 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. | July 27, 2004, 5:47 PM |
ChR0NiC | [quote author=Grok link=board=17;threadid=7884;start=0#msg72920 date=1090950424] Don't blame the student for your failure to be a good teacher. [/quote] 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 | July 27, 2004, 6:01 PM |
Kp | [quote author=Grok link=board=17;threadid=7884;start=0#msg72920 date=1090950424]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.[/quote] Actually, I just hadn't gotten here yet. :) Cleaned it from his message and dropped it from your quote for thoroughness, but otherwise didn't touch your message. | July 27, 2004, 11:33 PM |
Twitch | You guys don't really need to carry on.. i have alreaady figured it out and have figured out plenty more.. I don think i will be needing help for a long time. . or until i make a bot with BNET Docs. Thanks for your help guys. | July 29, 2004, 3:25 PM |