RedDot Nickname In PalTalk Room

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #64263
    pharaon
    Member

    I’m using the postmessage command to reddot a user

        Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As String) As Integer
    

     

    PostMessage(FindWindow(ChatRoomClass, Me.CtrlRoomSelector1.RoomName), WM_COMMAND, RedDotCommand, 0)

     

    is it right or should I use SendMessage instead of postmessage

    and what would be the code

    #64265
    Chike
    Administrator

    The difference between PostMessage and SendMessage is that PostMessage just place the message in the windows thread queue and resturn immediately, and sendMessage blocks (the calling thread) untill the message has been processed.

    If you intend to, or might, select another nick right after sending the message you need to use SendMessage to make sure it has been processed by paltalk, otherwise you can use PostMessage.

    #64266
    pharaon
    Member

    thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.