What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Party Invite

mymegabot

Member
Joined
Jan 15, 2010
Messages
88
Reaction score
0
Attempting to detect and click the party invite accept button (little green arrow on it).

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");


                    var wait = DateTime.Now.AddSeconds(10);


                    while (wait > DateTime.Now)
                    {
                        Logging.Write("Waiting ...");
                    }


                    btnAccept.Click();
                }
            }

It detects the button properly, but as soon as it clicks the button, the Diablo 3 game client crashes. I implemented that little delay just so I could see it was indeed detected. I've been able to get the Boss Encounter ACCEPT button to work in a similar manner ... just now sure what I'm doing wrong here.

Thanks!
Mega
 
Last edited:
Back
Top