You are here: MessengerYouLike.IMSDK.IMServer > IMSDK.IMServer Reference > IMSDK Namespace > IMServer Class > IMServer Methods > IMServer.SendCustomCommand Method
MessengerYouLike.IMSDK.IMServer
IMServer.SendCustomCommand Method

Send any Command to Online IMClient.

C#
public Boolean SendCustomCommand(String Username, String Data, String Type);
Visual Basic
Public Function SendCustomCommand(ByVal Username As String, ByVal Data As String, ByVal Type As String) As Boolean
Parameters 
Description 
ByVal Username As String 
Username of the Online user where this message is sent  
ByVal Data As String 
Any text string 
ByVal Type As String 
Any text string 

Returns True if Command was sent successfully and false if not send

 

Using this function any command can be sent to the Online IMClient ,this can be any text string 

 

like 

A URL can be opened on Online User desktop 

A Administrator Message can be sent to the user 

A Waring or a message of any type can be sent 

A existing software can be opened 

lots of other things can be done...

'[Visual Basic]
 
 
   Dim IMServer1 as new MessengerYouLike.IMSDK.IMServer
 
   If IMServer1.SendCustomCommand(Txtusername.Text, TxtData.Text, TxtType.Text) Then
            Response.Write("Command Sent")
   Else
            Response.Write("Command Not Sent")
   End If
 
You are here: MessengerYouLike.IMSDK.IMServer > IMSDK.IMServer Reference > IMSDK Namespace > IMServer Class > IMServer Methods > IMServer.SendCustomCommand Method
Copyright (c) 2007. All rights reserved.