Question about Admin Bot

You can talk about VB programming here

Re: Question about Admin Bot

Postby Chike » Sat Mar 22, 2008 4:35 am


Random wrote:this code goes to Form1 and take place of (username) and stats portion of the Timer1, am i right?

Where it goes is your decision, all the code does is retrive the next line from the room text based on the last line read that is sent as a parameter (and updated upon return.)
What line to start with, how to process the line, and when to stop processing lines is up to you. It just provide you the means to read all lines you haven't read yet and thus not lose any.
If last line you read was 50 and now there are 100 you can keep read them in a loop until there are no more lines left (the function reaturn false.) That's why the timer interval is not significant either.
Image
Chike
imFiles Master
imFiles Master
 
Posts: 583
Joined: Sun May 13, 2007 6:20 pm

Re: Question about Admin Bot

Postby Random » Sat Mar 22, 2008 8:07 am

ok, chike. this is what i'm seeing from all these ... in form1, (function username) text1 is where i get the user that enters the room. then in timer1 (stats section) it passes it to listbox with the time of entry. i put your code in a module. if i know where to use the Function get_next_line, i know with a little knowladge that i have and a few mistakes that i'm sure i'm gonna make, i'll get it in the right place. if there's any starting point you can think of, that i can call this function, it'll be great because i'm thinking once this code is used, username function and stats portion in timer1 might become useless.
here is the source itself :D

thanks
Attachments
AdminBot92VBScr.zip
(71.52 KiB) Downloaded 68 times
Random
imFiles Newbie
imFiles Newbie
 
Posts: 17
Joined: Thu Apr 12, 2007 10:12 pm

Previous

Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests