darryl561 177 Posted March 11, 2011 Report Share Posted March 11, 2011 I want to use a Confirm Dialog Box in a bot, I know how to create the dialog box but have no idea how to return the value back to ubot when some-one clicks either OK or Cancel. If anyone knows how to do this I would love to know. Darryl. Quote Link to post Share on other sites
Frank 177 Posted March 11, 2011 Report Share Posted March 11, 2011 Great Question Darryl and as long as you are navigated to a page that is supporting javascript, I have a great answer for you! I've attached a program that does three things using javascript dialog boxes. 1. Prompt you for a message that looks for input. (input dialog box)2. Displays that output from the previous message (simple OK dialog box)3. Finally, what you were looking for, an OK/Cancel dialog box that return True or False. There you go! javascript dialog boxes.ubot Frank 7 Quote Link to post Share on other sites
JohnB 255 Posted March 11, 2011 Report Share Posted March 11, 2011 +1 Frank! Quote Link to post Share on other sites
darryl561 177 Posted March 12, 2011 Author Report Share Posted March 12, 2011 Thanks Frank. Thats perfect and much appreciated. RegardsDarryl. Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 12, 2011 Report Share Posted March 12, 2011 Hi frank thanks for this +1 added! Is it possible to have a "open file/save file" dialog box? Thanks Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted March 12, 2011 Report Share Posted March 12, 2011 +1 great example.. Quote Link to post Share on other sites
blackmaster 0 Posted March 12, 2011 Report Share Posted March 12, 2011 great frank +1 added Quote Link to post Share on other sites
UBotBuddy 331 Posted March 12, 2011 Report Share Posted March 12, 2011 Ditto! +1 Quote Link to post Share on other sites
Frank 177 Posted March 28, 2011 Report Share Posted March 28, 2011 Hey start sendin them +1 as $1. Frank Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted April 2, 2011 Report Share Posted April 2, 2011 Hey start sendin them +1 as $1. Frank Hey Frank, Sorry to ask you twice but maybe you didnt notice this request above "Is it possible to have a "open file/save file" dialog box?" Thanks! Quote Link to post Share on other sites
Frank 177 Posted April 6, 2011 Report Share Posted April 6, 2011 In javascript, no unless you load a dedicated js library and then the sky's the limit. It's just a little too out there for me, so I've not bothered. Frank Quote Link to post Share on other sites
HarryPotter 9 Posted July 7, 2011 Report Share Posted July 7, 2011 woot! great tips and post Quote Link to post Share on other sites
warriorfullights 0 Posted July 14, 2011 Report Share Posted July 14, 2011 Nice tip Frank. Way to go. I could only say +1 for now. If this forum can add an option where you could add cent to a single dollar to a member's account, I will definitely add $1 to you for this tip. They usually call it 'donation' on other sites. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.