Closing pop-up confirmation dialogs

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Closing pop-up confirmation dialogs

#1 Post by rock5 »

Anyone know how to close pop-up dialogs?

Specifically the one that pops up when sending money via mail?

Last time I had this problem was with completing quests with reward choices but I avoided the dialog by making the choice before completing the quest.

Now I don't think I can avoid the dialog.

Oh yeah, and it needs to be an in-game solution because with the mail open the cursor is in the 'To' edit box so there can be no rombot script to game communication. I'm doing a yrest in script while an in-game function does all the work.

Actually I can probably use ClearFocus() so that the rombot can communicate with the client again then use a mouse click but it would be better if it could be done with a function.

Any ideas would be appreciated.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
Administrator
Site Admin
Posts: 5353
Joined: Sat Jan 05, 2008 4:21 pm

Re: Closing pop-up confirmation dialogs

#2 Post by Administrator »

It should be something like:

Code: Select all

MailFrame:Hide();
See the List of Frames for additional info.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Closing pop-up confirmation dialogs

#3 Post by rock5 »

Administrator wrote:It should be something like:

Code: Select all

MailFrame:Hide();
See the List of Frames for additional info.
I assume that MailFrame is the main mail frame. I need to answer yes to the send money dialog.

I'm guessing it's some OnClick event but I've got no idea how to identify the dialog or the yes button.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Closing pop-up confirmation dialogs

#4 Post by rock5 »

Turns out the pop-up confirmation dialog belonged to UMM so I was able to bypass it. Also I disabled all the SetFocus commands in UMM so they wont interfere with rombot communications.

I was left with 1 problem.

After sending any mail the focus would get stuck somewhere (not in any visible edit box) and rombot would no longer be able to communicate with the client. I finally solved that one by placing

Code: Select all

GetKeyboardFocus():ClearFocus()
at the end of the 'mail sent' function'.

So far testing looks good. Have to try it in a script now.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
Post Reply