您现在的位置是:网站首页> 编程资料编程资料
如何判断用户是否非正常离开聊天室?_编程10000问_
2023-05-25
144人已围观
简介 如何判断用户是否非正常离开聊天室?_编程10000问_
如何判断用户是否非正常离开聊天室?
total = application("AllPeople")
' 聊天总人数.
aryHuman = split(total,";")
for i = lbound(aryHuman) to ubound(aryHuman) - 1
if application("user" & i) = "online" then
if int(timer) - int(application("TimeBegin" & i)) > 120 then
application("user" & i) = ""
temp = aryHuman(i)
aryName = split(temp,",")
hrefname = aryName(0)
for j = lbound(aryHuman) to ubound(aryHuman) - 1
if application("user" & j) = "online" then
application("content" & j) = "〖精彩春风之聊天室的系统公告〗"&hrefname&"" &""& "掉线了..." & "" & " <" & time() & ">
" & application
("content" & j)
end if
next
end if
end if
next
[1]
