腾讯通插件

VERSION 5.00
Begin VB.UserControl rtx 
   BackColor       =   &H8000000D&
   ClientHeight    =   210
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   210
   MaskColor       =   &H8000000D&
   ScaleHeight     =   210
   ScaleWidth      =   210
End
Attribute VB_Name = "rtx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True

Dim objApi As Object
Dim objApp As Object
Dim objHelper As Object
Dim objKernal As Object
Dim objPresence As Object

Public Function RTXIsRuning() As Boolean
Set objApi = CreateObject("RTXClient.RTXAPI")
RTXIsRuning = objApi.IsRTXCRunning()
End Function

Public Function userDepartment(ByVal str As String) As String
Set objApi = CreateObject("RTXClient.RTXAPI")
Set objApp = objApi.GetObject("AppRoot")
Set objHelper = objApp.GetAppObject("RTXHelper")
userDepartment = objHelper.GetBuddyDept(str)
End Function

Public Function userStatus(ByVal str As String) As String
Set objApi = CreateObject("RTXClient.RTXAPI")
Set objKernal = objApi.GetObject("KernalRoot")
Set objPresence = objKernal.Presence
State = objPresence.RTXPresence(str)
If State = 1 Then
userStatus = "在线"
ElseIf State = 0 Then
userStatus = "离线"
Else
userStatus = "离开"
End If
End Function

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值