- This topic has 5 replies, 4 voices, and was last updated 5 years ago by
ChiNa.
-
AuthorPosts
-
January 26, 2015 at 6:26 pm #66382
NVYE
AdministratorDoes 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
January 27, 2015 at 12:51 pm #66385Winter
MemberNot close, just HIDE it and you can update without re-open
January 29, 2015 at 10:30 pm #66403NVYE
Administratorguess not … I’ll get my hands busy 🙂
January 30, 2015 at 1:39 am #66405Chike
AdministratorAnd don’t forget to post the code
January 31, 2015 at 10:31 pm #66408NVYE
Administratori 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
July 27, 2015 at 6:27 pm #66693ChiNa
AdministratorMy 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!
-
AuthorPosts
- You must be logged in to reply to this topic.