HI GUYS,I STOP TO MAKE TALKINCHAT AND HOIVIA SOFTWARE,BUT NOW I WILL SHARE THE CODES OF TALKINCHAT USING MY RCLIENT.DLL FILE,ON THIS VIDEO,YOU CAN MAKE YOUR OWN TALKINCHAT APPLICATION LIKE BOTS,JUST FOLLOW STEP BY STEP.
YOU WILL NEED TO INSTALL MICROSOFT VISUAL STUDIO 2017 0R LATEST VERSION.
AND DOWNLOAD ABOT V3 TO GET RCLIENT.DLL FILE.
PARTIAL CODES:
Imports System.Threading
Imports RClientImports RClient.MultiUserChatImports RClient.UserImports System.Threading.TasksImports System.NetPublic Class Form1Private ryu As RChatPrivate Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.ClickIf Button1.Text = "LogIn" Thenryu = New RChatryu.Username = (TxtUser.Text)ryu.Password = TxtPass.Textryu.Login(TxtUser.Text, TxtPass.Text)AddHandler ryu.OnConnected, AddressOf connectedAddHandler ryu.OnLogin, AddressOf loginAddHandler ryu.OnLogout, AddressOf logoutAddHandler ryu.OnClose, AddressOf onCloselblstatus.Text = "Connecting..."ElseIf Button1.Text = "LogOut" Thenryu.Logout()End IfEnd Sub
Private Sub onClose(ryu As RChat)Button1.Text = "LogIn"lblstatus.Text = "Disconnected"End SubPrivate Sub logout(ryu As RChat)Button1.Text = "LogIn"lblstatus.Text = "Offline"End SubPrivate Sub login(ryu As RChat, authCode As AuthCode)lblstatus.Text = authCode.ToStringryu.GetMucList(MucType.public)End SubPrivate Sub connected(ryu As RChat)lblstatus.Text = ("Connected")Button1.Text = "LogOut"End SubPrivate Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.ClickIf Button2.Text = "Join" Thenrtfchat.Clear()listusers.Items.Clear()lblcount.Text = "0"ryu.JoinMuc(TxtRoom.Text, 0)ElseIf Button2.Text = "Leave" Thenryu.LeaveMuc(TxtRoom.Text)End IfEnd SubEnd Class
No comments:
Post a Comment