ik heb de volgende code geschreven voor MSN messenger
Nu wil ik als ik op een naam duw een chat window openen. Iemand enig idee hoe ik dat het beste kan doen?
Weet ook iemand hoe je een VB script zichzelf om de 15 seconden laat aanroepen? (ik gebruik nu een meta refresh van 30 seconden)
alvast bedankt.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
| <script language="vbscript">
function Online()
Set objMSNMsgr=createobject("Messenger.MsgrObject")
Set Users =objMSNMsgr.List(MLIST_ALLOW)
document.write "<table border=""0"" align=""right""><tr><td colspan=""2"">"
document.write "<p class=""big"">"
if objMSNMsgr.LocalState=1 then document.write"You are offline"
if objMSNMsgr.LocalState=2 then document.write"You are online"
if objMSNMsgr.LocalState=6 then document.write"You appear offline"
if objMSNMsgr.LocalState=10 then document.write"You are busy"
if objMSNMsgr.LocalState=14 then document.write"You are brb"
if objMSNMsgr.LocalState=50 then document.write"You are on the phone"
if objMSNMsgr.LocalState=66 then document.write"You are out to lunch"
document.write "</td></tr></p>"
For i = 0 To Users.Count - 1
If Users.Item(i).State <> 1 then
document.write"<tr><td>"
if Users.Item(i).State=2 then document.write "[img]""images/online1.gif""[/img]"
if Users.Item(i).State=34 then document.write "[img]""images/idle1.gif""[/img]"
if Users.Item(i).State=18 then document.write "[img]""images/idle1.gif""[/img]"
if Users.Item(i).State=66 then document.write "[img]""images/idle1.gif""[/img]"
'document.write Users.Item(i).State
document.write "</td><td class=""small"">" & Users.Item(i).FriendlyName
document.write"</td></tr>"
end if
next
'Users.Item(i).State
'Users.Item(i).FriendlyName
'Users.Item(i).LogonName
document.write "<tr><td colspan=""2""><p class=""smallwhite""><b>" & objMSNMsgr.UnreadEmail(0) & " new e-mails</b></p></td></tr>"
'msgbox (objMSNMsgr.UnreadEmail(0))
document.write "</table>"
end function
</script> |
Nu wil ik als ik op een naam duw een chat window openen. Iemand enig idee hoe ik dat het beste kan doen?
Weet ook iemand hoe je een VB script zichzelf om de 15 seconden laat aanroepen? (ik gebruik nu een meta refresh van 30 seconden)
alvast bedankt.