January 26, 2015 at 6:26 pm #66382
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. ThanksJanuary 27, 2015 at 12:51 pm #66385WinterMember
Not close, just HIDE it and you can update without re-openJanuary 29, 2015 at 10:30 pm #66403
guess not … I’ll get my hands busy 🙂January 30, 2015 at 1:39 am #66405ChikeAdministrator
And don’t forget to post the codeJanuary 31, 2015 at 10:31 pm #66408
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 SubJuly 27, 2015 at 6:27 pm #66693ChiNaAdministrator
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!
- You must be logged in to reply to this topic.