Use LV to get a nick? Good, bad, or just wrong?

You can talk about VB programming here

Use LV to get a nick? Good, bad, or just wrong?

Postby IMAFriend » Sat Mar 29, 2008 10:32 am


So, some of the code I've learned from uses the richtext chatroom text to get nicks of incoming and outgoing nicknames.

I thought about, since I already have coded for the listview, instead of searching the really long text string based on previous position n stuff like that... Would it be quicker, or better, to go through the listview and look for nicks that aren't in your previous array/list of nicks?

And, is there a way to check if the listview has changed, easily, other than on a timer?

Thanks again! My first app is coming together finally!
IMAFriend
imFiles Newbie
imFiles Newbie
 
Posts: 12
Joined: Sun Mar 02, 2008 4:51 am

Re: Use LV to get a nick? Good, bad, or just wrong?

Postby locohacker » Sat Mar 29, 2008 10:51 am

ah i think I know what you mean, all you goign to be doing is refreshing the nicks listbox to see if there are new nicks, well if its that, that will eat a lot of CPU I try doing the greeter like that once and man is crazy how much CPU it eats ands is much slower :) and the only way to check for changes is with a timer, I think :roll:
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4364
Joined: Fri Dec 31, 2004 6:59 pm

Re: Use LV to get a nick? Good, bad, or just wrong?

Postby Chike » Sat Mar 29, 2008 1:30 pm

My program use a DLL that subclass the roon text and the user list, and does not need a timer at all. Everything is event driven. When a user enter the room my program get notified, if it's status changed also, but it also has the ability to scan the user names and report their initial status. The text is also event driven, I use timer only to schedual cam starts so it won't put a heavy load on paltalk when sometimes 10 cams open at once (like when you enter/connect a room.)
I believe this DLL can be integrated with basic, however using it is not trivial, since the DLL library use native threads and .NET objects are not always thread safe (like form.)
I have another DLL that monitor room windows activity (create/activate/destroy) to know if a new room is oppened or pal is closed etc.
Image
Chike
imFiles Master
imFiles Master
 
Posts: 583
Joined: Sun May 13, 2007 6:20 pm


Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests