dialog icon indicating copy to clipboard operation
dialog copied to clipboard

Support question dialog type

Open charlielee opened this issue 9 years ago • 6 comments

This would allow users to respond "yes" or "no" to a dialog with a new method dialog.confirm. My initial thoughts on implementing this in a cross platform manner are:

  • Use MsgBox style 4 and WScript.Quit response to return an exit code indicating the button pressed on Windows
  • Use Zenity's --question option for Linux
  • Use the buttons parameter of display dialog on Mac and extract which button was clicked from the Result record.

https://msdn.microsoft.com/en-us/library/139z2azd(v=vs.90).aspx https://help.gnome.org/users/zenity/stable/question.html.en https://developer.apple.com/library/content/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_cmds.html#//apple_ref/doc/uid/TP40000983-CH216-SW12

charlielee avatar Oct 15 '16 12:10 charlielee

Sounds good!

tomas avatar Oct 15 '16 15:10 tomas

@BoatsAreRockable interested in submitting a PR for this?

tomas avatar Dec 01 '16 22:12 tomas

I'm pretty busy for the next couple of weeks but I hope to over the Christmas break! 😃

charlielee avatar Dec 03 '16 15:12 charlielee

Is there any way to ask the user yes/no confirm style yet? would be awesome

homakov avatar Oct 21 '17 12:10 homakov

I have used Tomas' dialog for a while for a desktop app that runs on windows, linux and OSX. Recently I ran into the situation that I needed also the user's input (like text, date, Ok/Cancel,...), so I created dialog-node which takes Tomas' concept and extends it to dialogs that query user input: https://www.npmjs.com/package/dialog-node Feedback (positive or negative) highly appreciated

bat-tomr avatar Dec 18 '17 07:12 bat-tomr

Would anyone care to try #11 and see if it solves the issue for everyone?

tomas avatar Feb 13 '18 20:02 tomas