Jump to content
UBot Underground

Using A Confirm Dialog Box


Recommended Posts

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.

Link to post
Share on other sites

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

  • Like 7
Link to post
Share on other sites
  • 3 weeks later...

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

Link to post
Share on other sites
  • 3 months later...

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. :D

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...