Page 1 of 1
How can i manage a yes/no dialog
Posted: Tue May 17, 2011 6:58 pm
by Rickster
When talking to Sturobold and asking him to tranport me to somewhere, he asks me whether or not i realy want to spend some gold for getting to my destination and presents me a dialog where i can chose yes or no.
Easy thing when using my mouse, but how can i manage this dialog with the bot?
Thanx
Ric
Re: How can i manage a yes/no dialog
Posted: Tue May 17, 2011 11:09 pm
by rock5
I don't know who Sturobold is but the game addon "Streamline" can auto pay some things.
If not, you probably need to deal with static popups. You probably need the following commands.
StaticPopup_Visible
StaticPopup_OnClick
The StaticPopup_Visible shows a bit of code you might need to make use of. Of course it would have to be converted to rombot code with RoMScripts and you might need to know the name of the popup frame.
Or you might be able to just use StaticPopup_OnClick.
Re: How can i manage a yes/no dialog
Posted: Tue May 17, 2011 11:31 pm
by Alkaiser
Try this:
Code: Select all
RoMScript("OnClick_RequestDialogAccept()")
Re: How can i manage a yes/no dialog
Posted: Wed May 18, 2011 12:59 am
by lisa
it's for snoop, I'd say that is another language name for Snoop.
Re: How can i manage a yes/no dialog
Posted: Wed May 18, 2011 6:27 am
by rock5
lisa wrote:it's for snoop, I'd say that is another language name for Snoop.
In that case Streamline should work.
Re: How can i manage a yes/no dialog
Posted: Wed May 18, 2011 10:13 am
by Alkaiser
rock5 wrote:lisa wrote:it's for snoop, I'd say that is another language name for Snoop.
In that case Streamline should work.
The function I posted above works for Snoop.
Re: How can i manage a yes/no dialog
Posted: Wed May 18, 2011 10:43 am
by Rickster
Yes, I am talking about this little dog, taking care of the transport gates.
I´ll try Alkaisers solution.
And maybe, coz I think its interessting, I will give a try to the two above mentioned functions. I had a quick look at them and their short description, but I could not get an idea of how to use them correct. I will check that out.
Thanx so far.