Code Change Banner Text

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #66382
    NVYE
    Administrator

    Does anyone have code that change the Paltalk banner text ?  Basically first open the admin panel change the text and close it.  I’m too lazy to look at the paltalk api, if anyone has it and would like to share is much appreciated.  Thanks

    #66385
    Winter
    Member

    Not close, just HIDE it and you can update without re-open

    #66403
    NVYE
    Administrator

    guess not … I’ll get my hands busy 🙂

    #66405
    Chike
    Administrator

    And don’t forget to post the code

    #66408
    NVYE
    Administrator

    i have successfully wrote the function but in VB.NET

    Public Sub updateBanner(ByVal roomName As String, ByVal text As String)
    Me.sendWMCommandToRoomName(roomName, WMCommand.palAdminConsole)
    Dim hwnds As Integer() = WinAPIService.getWindowHwndsByText("Console - " & roomName)
    If (hwnds.Length > 0) Then
    Dim hwnd As Integer = hwnds(0)
    WinAPIService.hideHwnd(hwnd)
    Dim bannerHwnd As Integer = WinAPIService.FindWindowEx(hwnd, 0&, "Edit", vbNullString)
    Call WinAPIService.SendMessageString(bannerHwnd, WinAPIService.WM_SETTEXT, 0&, New StringBuilder(text))
    Dim hwndButton As Integer = WinAPIService.findHwndByParentHwnd(hwnd, "Button", 17) 'Support all international versions
    Call WinAPIService.SendMessage(hwndButton, WinAPIService.WM_KEYDOWN, WinAPIService.VK_SPACE, 0&)
    Call WinAPIService.SendMessage(hwndButton, WinAPIService.WM_KEYUP, WinAPIService.VK_SPACE, 0&)
    business.util.Methods.delay(1000)
    WinAPIService.closeByHwnd(hwnd)
    End If
    End Sub
    #66693
    ChiNa
    Administrator

    My bad NYVE bro for not replying faster. Saw your message first now. I “almost” use the same method for submitting away messages. But I couldnt figure out why “Edit” did not work for the button for Paltalk Banner Messages. Eventually I gave up. But now you made this look so easy. Awesome job. I will test it out later this week!

     

     

     

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