Skip to content

C# Paltalk Desktop Code

I will provide the code for reading and sending room text on the new Paltalk client, but there are a few issues that need to be addressed before I make it public. When the bot was running for more than 24 hours, it occasionally just hung.

Here’s some code to help you get Paltalk windows for your research.

private string[] getPaltalkWindows()
{
var list = new List();
var rootElement = AutomationElement.RootElement;
var winCollection = rootElement.FindAll(TreeScope.Children, Condition.TrueCondition);
foreach (AutomationElement element in winCollection)
{
if (element.Current.FrameworkId == "Qt")
{
// ignore main window
if (element.Current.Name.ToLower().StartsWith("paltalk")) { continue; }
// hwnd = element.Current.NativeWindowHandle
list.Add(element.Current.Name);
}
}
return list.ToArray();
}

1 thought on “C# Paltalk Desktop Code”

Leave a Comment

You must Register or Login to comment on C# Paltalk Desktop Code