GUI Scripting

This is a discussion on GUI Scripting within the Tech Board forums, part of the Community Boards category; I need to create a small GUI which will serve as the front end for a simple shell script. There ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    752

    GUI Scripting

    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.
    Callou collei we'll code the way
    Of prime numbers and pings!

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Perhaps you can use XML/HTML/PHP/JavaScript?

    --
    Mats

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    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/

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    HTML Applications are another way to implement Fordy's solution.

  5. #5
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    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.

  6. #6
    Registered User
    Join Date
    Sep 2001
    Posts
    752
    Good News:
    It is looks pretty easy to make a nice little interface in HTML with JavaScript, packaged as an HTML Application.

    Bad News:
    Explorer spits out more phishing warings and popups than I have ever seen before. =(


    I like this solution though, gonna keep hacking at it.
    Callou collei we'll code the way
    Of prime numbers and pings!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Convert Windows GUI to Linux GUI
    By BobS0327 in forum Linux Programming
    Replies: 21
    Last Post: 11-27-2005, 04:39 AM
  2. .NET And GUI Programming :: C++
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 01-27-2002, 04:22 PM
  3. GUI Programming :: C++ Exclusive
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 01-25-2002, 03:22 PM
  4. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 08:03 PM
  5. GUI (Graphical User Interface) Help Needed
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 10-11-2001, 11:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21