Looking for some code examples on how to properly accept a party invite, in addition to how to extend an invite to another player.
I've been able, via the UIElement class, to identify the party invite accept button ... in the same manner that I am detecting the Boss Encounter ACCEPT button and clicking it (which works). But for the party invite accept button, I can detect it, but if I click it, the Diablo client explodes.
Here is what I was trying ...
Appreciate any tips/help.
Thanks!
Mega
I've been able, via the UIElement class, to identify the party invite accept button ... in the same manner that I am detecting the Boss Encounter ACCEPT button and clicking it (which works). But for the party invite accept button, I can detect it, but if I click it, the Diablo client explodes.
Here is what I was trying ...
Code:
if (Zeta.Internals.UIElement.IsValidElement(0x9EFA05648195042D))
{
var btnAccept = Zeta.Internals.UIElement.FromHash(0x9EFA05648195042D);
if (btnAccept != null && btnAccept.IsVisible)
{
Logging.Write("Party Invite Detected. Pressing Accept");
btnAccept.Click();
}
}
Appreciate any tips/help.
Thanks!
Mega