I’ve always used VBScript to write the simple scripts I
occasionally need. But now that I’ve learned a tiny bit of
ruby, I don’t want to use vbscript anymore!
Unfortunately for me, ruby has nothing like InputBox() and Msgbox().
While I’m comfortable with the command prompt and often prefer
it, sometimes its just more convenient to run scripts directly
from windows.
As I’ll probably never need any more “GUI capabilities” than
those two statements provide, it seems like fxruby, ruby tk,
etc. is overkill for my simple needs.
I did run across “Ruby & Excel: The InputBox Hack” but of
course it’s slow and at least for me, the prompt is not
“active” (you have to Alt-tab to get to it)
those two statements provide, it seems like fxruby, ruby tk,
etc. is overkill for my simple needs.
I did run across “Ruby & Excel: The InputBox Hack” but of
course it’s slow and at least for me, the prompt is not
“active” (you have to Alt-tab to get to it)
I’ve always used VBScript to write the simple scripts I
occasionally need. But now that I’ve learned a tiny bit of
ruby, I don’t want to use vbscript anymore!
Unfortunately for me, ruby has nothing like InputBox() and Msgbox().
Shoes (http://shoooes.net/) is a simple GUI toolkit and probably what
you’re looking for. Sample:
if confirm(“Do Something?”)
do_it
else
do_something_else
end