I need to create a small GUI which will serve as the front end for a simple shell script. There are a few simple options to pass, the most important of which is a simple interface for specifying a date.
Ideally, this GUI should be written in a scripting language due to its simplicity and coupling with a shell script. So, I have the following requirements
- Scripting language
- Can be used to create a GUI on Windows
- Interpreter is built into Windows, or very easily coupled with the script.
- Powerful enough to have some form of date-selection dialog without -too- much hassle.
How close can I get to this? This seems like a really simple task, but I don't know of any solutions.
I used to do a fair bit of JScript with WSH coding a while back. Occasionally I needed a GUI, but didnt want to code and activeX component as I wanted people to be able to run it without anything installed.
The way I did it was to create an instance of Internet Explorer, write the HTML I need for the GUI into the document itself, then rely on a little JScript event handling to give me my user input.
Here's a few examples that will help - http://freenet-homepage.de/gborn/WSHBazaar/
HTML Applications are another way to implement Fordy's solution.
Why not throw a little bit of perl in there?
There are a few way's to make GUI's with perl, and it *is* a scripting language.
Explorer spits out more phishing warings and popups than I have ever seen before. =(
I like this solution though, gonna keep hacking at it.