Open charlielee opened 8 years ago
Sounds good!
@BoatsAreRockable interested in submitting a PR for this?
I'm pretty busy for the next couple of weeks but I hope to over the Christmas break! 😃
Is there any way to ask the user yes/no confirm style yet? would be awesome
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
Would anyone care to try #11 and see if it solves the issue for everyone?
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:MsgBox
style4
andWScript.Quit response
to return an exit code indicating the button pressed on Windows--question
option for Linuxbuttons
parameter ofdisplay dialog
on Mac and extract which button was clicked from theResult
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