This another way to get Paltalk windows title 🙂
One thing it will get all open windows, but it will include pms, you just need to do a look for “-rooms” to add just pms
Private Function GetText(Get_hWnd As Long) As String
Dim lenTxt As Long, retText As String
lenTxt = GetWindowTextLength(Get_hWnd) + 1
retText = String$(lenTxt, " ")
GetWindowText Get_hWnd, retText, lenTxt
GetText = retText
End Function
Call it with
Combo1.AddItem GetText(FindWindow("dlggroupchat window class", vbNullString))