need help with code for paltalk

In this forums, you can get help for any programming language.

need help with code for paltalk

Postby pharaon » Sun Nov 15, 2009 12:56 pm


i want code to unreddot users that i put their nick in white list
can someone help me
pharaon
imFiles Newbie
imFiles Newbie
 
Posts: 48
Joined: Sat May 30, 2009 4:39 pm

Re: need help with code for paltalk

Postby String » Sun Nov 15, 2009 5:14 pm

This question was answered when you asked it here.

Call your red-dot function to red-dot the user.
Call the same function to UN red-dot the user.

If you still need more, post what you have so far.
I appreciate that you are new to programming, but, what your trying to do is pretty much spelled out for you in the example.
-= Please ask your questions in the forum, not in pm.
String
imFiles Senior
imFiles Senior
 
Posts: 313
Joined: Mon Mar 10, 2008 7:06 am
Location: IDE

Re: need help with code for paltalk

Postby pharaon » Sun Nov 15, 2009 6:50 pm

do you have it for vb.net code
pharaon
imFiles Newbie
imFiles Newbie
 
Posts: 48
Joined: Sat May 30, 2009 4:39 pm

Re: need help with code for paltalk

Postby pharaon » Sun Nov 15, 2009 10:04 pm

is there a code the check the user if he is reddot or not
pharaon
imFiles Newbie
imFiles Newbie
 
Posts: 48
Joined: Sat May 30, 2009 4:39 pm

Re: need help with code for paltalk

Postby Chike » Sun Nov 15, 2009 10:40 pm

pharaon wrote:is there a code the check the user if he is reddot or not

Yes http://www.imfiles.com/instant-messenger/listview-hands-raised-t31198.html?hilit=hand%20up#p77064
Image
Chike
imFiles Master
imFiles Master
 
Posts: 583
Joined: Sun May 13, 2007 6:20 pm

Re: need help with code for paltalk

Postby Chike » Mon Nov 16, 2009 10:33 am

See the code attached to this post. You still need some work to do by your own.
Image
Chike
imFiles Master
imFiles Master
 
Posts: 583
Joined: Sun May 13, 2007 6:20 pm

Re: need help with code for paltalk

Postby pharaon » Wed Nov 18, 2009 3:25 pm

check this code guys and tell me what is wrong about it
Code: Select all
Private Sub Timer1_Timer()
Dim i As Integer
Call NickGet
For i = 0 To List1.ListCount - 1
If List1.List(i) = List2.Index Then
Call getuserstatus(List2.Index)
End If
Next i
End Sub


i want to check the status for my friends in list1 from the room list
and i get error that object is not an array
pharaon
imFiles Newbie
imFiles Newbie
 
Posts: 48
Joined: Sat May 30, 2009 4:39 pm

Re: need help with code for paltalk

Postby String » Wed Nov 18, 2009 6:51 pm

I dont think you are calling your getuserstatus function correctly.

Should be like this:
Code: Select all
getuserstatus(handle_of_listview, item_index)

getuserstatus will return 1, if it is red dot.

You might use somthing like:
Code: Select all
If getuserstatus (lstviewhwnd, (i)) = "1" Then
'    they are red dotted
End If
-= Please ask your questions in the forum, not in pm.
String
imFiles Senior
imFiles Senior
 
Posts: 313
Joined: Mon Mar 10, 2008 7:06 am
Location: IDE

Re: need help with code for paltalk

Postby Chike » Wed Nov 18, 2009 7:31 pm

String wrote:Should be like this:
Code: Select all
getuserstatus(handle_of_listview, item_index)

getuserstatus will return 1, if it is red dot.

Better if getuserstatus will return the image number for more flexible code.

EDIT: note that the red dot may be covered by a hand, but it's not a problem if you only check for new comers, if someone raise his hand before being undotted he will simply remain dotted.
Image
Chike
imFiles Master
imFiles Master
 
Posts: 583
Joined: Sun May 13, 2007 6:20 pm

Re: need help with code for paltalk

Postby pharaon » Wed Nov 18, 2009 7:47 pm

Code: Select all
Call getuserstatus(syslistview, List2.Index)


i make the code this way and still get error object not an array
pharaon
imFiles Newbie
imFiles Newbie
 
Posts: 48
Joined: Sat May 30, 2009 4:39 pm

Re: need help with code for paltalk

Postby Departure » Wed Nov 18, 2009 8:05 pm

because handle to syslistview is not in your timer....

you must set the handle to your variable "syslistview" otherwise make it public variable which all functions can access
User avatar
Departure
Global Moderator
Global Moderator
 
Posts: 996
Joined: Thu Mar 17, 2005 11:26 am
Location: Australia

Re: need help with code for paltalk

Postby pharaon » Wed Nov 18, 2009 8:45 pm

Code: Select all
Private Sub Timer1_Timer()
Dim syslistview As Long
syslistview = FindWindowEx(atldd, 0&, "syslistview32", vbNullString)
Dim i As Integer
Call NickGet
For i = 0 To List1.ListCount - 1
If List1.List(i) = List2.Index Then
Call getuserstatus(syslistview, List2.Index)
End If
Next i
End Sub


i did it that way and still get the same error
pharaon
imFiles Newbie
imFiles Newbie
 
Posts: 48
Joined: Sat May 30, 2009 4:39 pm

Re: need help with code for paltalk

Postby Departure » Thu Nov 19, 2009 7:04 am

yes because you need to find the handle of the parent window, the main chat room handle then subclass down to the handle of the systemlistview32 handle.

You have
"syslistview = FindWindowEx(atldd, 0&, "syslistview32", vbNullString)"

but whats the handle of "atldd" ? you need to find the handles from the top level window then find the handles of the component (for example systemlistview32). only after finding the main window can you find child windows and components.
User avatar
Departure
Global Moderator
Global Moderator
 
Posts: 996
Joined: Thu Mar 17, 2005 11:26 am
Location: Australia

Re: need help with code for paltalk

Postby String » Thu Nov 19, 2009 6:16 pm

Chike wrote:Better if getuserstatus will return the image number for more flexible code.
It does. Returns 1 if red dot, 4 if mic.. etc etc... as you described in link posted above.

<off topic> Departure, whats up with your server? The forum page returns a "Server Not Found" and your main page returns an odd looking Google 404 error page. Thought Id mention it, in case you were not aware.</off topic>
-= Please ask your questions in the forum, not in pm.
String
imFiles Senior
imFiles Senior
 
Posts: 313
Joined: Mon Mar 10, 2008 7:06 am
Location: IDE

Re: need help with code for paltalk

Postby pharaon » Fri Nov 20, 2009 2:04 pm

i tryed this code
Code: Select all
Private Sub Timer1_Timer()
Dim i As Integer
Call NickGet
For i = 0 To List1.ListCount - 1
For j = 0 To List2.ListCount - 1
If List1.List(i) = List2.List(j) Then
Call getuserstatus(syslistview, List2.List(j))
End If
Next
Next
End Sub


but i get error for Call getuserstatus(syslistview, List2.List(j)) type missmatch
pharaon
imFiles Newbie
imFiles Newbie
 
Posts: 48
Joined: Sat May 30, 2009 4:39 pm

Next

Return to Programming Help

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests