



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


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
getuserstatus(handle_of_listview, item_index)If getuserstatus (lstviewhwnd, (i)) = "1" Then
' they are red dotted
End If
String wrote:Should be like this:
- Code: Select all
getuserstatus(handle_of_listview, item_index)
getuserstatus will return 1, if it is red dot.

Call getuserstatus(syslistview, List2.Index)

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

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

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
Users browsing this forum: No registered users and 0 guests