Page 1 of 1
Window asking to change channels when joining party
Posted: Thu Mar 14, 2013 4:21 pm
by noobbotter
Does anyone know how to detect and close the question window that comes up when you join a party and the leader is in another channel? I don't mean to manually click yes or no, but how to have the bot close the window? I searched through the events list on the wiki and couldn't find anything that looked like it would be an event for that window appearing.
Re: Window asking to change channels when joining party
Posted: Thu Mar 14, 2013 10:44 pm
by lisa
There are 2043 occurances of "Popup" in the game, The wiki is deffinately not complete in any way shape or form.
As to which is what you are after, no idea.
The usual culprits are
StaticPopup1
StaticPopup2
StaticPopup3
StaticPopup4
Also maybe
GroupListPopup
you can try a macro with something like this.
Code: Select all
if StaticPopup1:IsVisible() then SendSystemChat("pop1") end
if StaticPopup2:IsVisible() then SendSystemChat("pop2") end
if StaticPopup3:IsVisible() then SendSystemChat("pop3") end
if StaticPopup4:IsVisible() then SendSystemChat("pop4") end
if GroupListPopup:IsVisible() then SendSystemChat("group") end
I had thast in IGSC but in macro you would need to add in the /script at the start of each line.
you can test it by chating to snoop and when he askes for money that will be pop1.
Re: Window asking to change channels when joining party
Posted: Fri Mar 15, 2013 12:08 am
by rock5
In the very latest version of the bot 754 I added the function
AcceptPopup(popupName).
With no argument specified it will just accept whatever popup is open. When it accepts a popup it prints the name of it so you can add it to the command to make sure it always accepts the right one.
The beauty of this function is you don't have to check if there is a popup open first and you don't have to check which popup is being used, staticPopup1, 2 ,3 or 4 and it supplies you with the name of the popup so you don't have to search for it on the web. A very convenient function even if I do say myself.

Re: Window asking to change channels when joining party
Posted: Fri Mar 15, 2013 3:21 am
by lisa
I'll have to remember that 1 =)
Re: Window asking to change channels when joining party
Posted: Fri Mar 15, 2013 5:50 am
by noobbotter
Sounds good. I'll try that. Thanks to both of you.