MassRS Posted February 25, 2015 Share Posted February 25, 2015 So i have got the parent and the child ID. I want to have my script click "Click here to continue" but i can't find a way to do this... someone help Quote Link to comment Share on other sites More sharing options...
Lemons Posted February 25, 2015 Share Posted February 25, 2015 (edited) Easier way: if (dialogues.isPendingContinuation()) { dialogues.clickContinue(); } Edited February 25, 2015 by dudeami Quote Link to comment Share on other sites More sharing options...
MassRS Posted February 25, 2015 Author Share Posted February 25, 2015 (edited) Easier way: if (main.dialogues.isPendingContinuation()) { main.dialogues.clickContinue(); } And if i wanted it to click an option? I can't seem to use that... i think it is because my script in eclipe is called "main"? Edited February 25, 2015 by massih Quote Link to comment Share on other sites More sharing options...
Joseph Posted February 25, 2015 Share Posted February 25, 2015 (edited) check at the dialogues class they have great methods. http://prntscr.com/69ihtk Edited February 25, 2015 by josedpay Quote Link to comment Share on other sites More sharing options...
MassRS Posted February 25, 2015 Author Share Posted February 25, 2015 check at the dialogues class they have great methods. http://prntscr.com/69ihtk if (dialogues.isPendingContinuation()){ dialogues.clickContinue();} if (dialogues.isPendingOption()){ dialogues.selectOption("Can I journey on this ship?");} this should work right? but it does not.. Quote Link to comment Share on other sites More sharing options...
Lemons Posted February 25, 2015 Share Posted February 25, 2015 And if i wanted it to click an option? I can't seem to use that... i think it is because my script in eclipe is called "main"? Sorry, main. is what I use in my scripts as I don't bunch it all in one class, updated the post. Check out the Dialouges API docs like josedpay said, it has most of the functionality you need. Else, take a look at the Interfaces API docs, it has more of what you were expecting. Quote Link to comment Share on other sites More sharing options...
MassRS Posted February 25, 2015 Author Share Posted February 25, 2015 Got it working put in some sleeps. Thank you all! Quote Link to comment Share on other sites More sharing options...
Joseph Posted February 25, 2015 Share Posted February 25, 2015 if (dialogues.isPendingContinuation()){ dialogues.clickContinue();} if (dialogues.isPendingOption()){ dialogues.selectOption("Can I journey on this ship?");} this should work right? but it does not.. i guess know let us know how it works. Quote Link to comment Share on other sites More sharing options...
MassRS Posted February 25, 2015 Author Share Posted February 25, 2015 i guess know let us know how it works. if (dialogues.isPendingContinuation()){ dialogues.clickContinue(); sleep(random(800, 1100));} if (dialogues.isPendingOption()){ dialogues.selectOption("Can I journey on this ship?"); sleep(random(800, 1100));} this works 1 Quote Link to comment Share on other sites More sharing options...