Jump to content

Simple, free Windows "menu" program?


Recommended Posts

Seeing as AutoIt GUI is still in an evolving state, I would rather not program for it.

Does any one know of a simple, free, configurable menu system for Windows?

Here's what I want:

A simple menu window lists all the programs that can be installed, with a check box next to each one. I can select the programs that need to be installed on this particular machine. A "Go" box at the bottom runs the autoit scripts for the selected applications. And, a simple "I'm done"-type message box pops up when the application installations are complete.

I've scripted the installations for all the progams in AutoIt, but have not been able to come up with a simple "front-end" for my task.

Any ideas?

Thanks,

Aaron

Link to comment
Share on other sites

You might think of using AutoIt to do it. :ph34r:

$items=StringSplit("VNC,Firefox,Office 2007,AutoIt3",",")
GUICreate("My GUI"); will create a dialog box that when displayed is centered
Dim $check[$items[0]+1]
For $i=1 To $items[0]
    $check[$i]=GUISetControl ( "checkbox", $items[$i], 10, 20*$i,300 )
Next
$nOK=GUISetControl("Button", "Install marked applications", 10,20*($i+1),300)

GUIShow()    ; will display an empty dialog box with a combo control with focus on
GUIWaitClose()  ; wait dialog closing
if $nOK= GuiRead () then          ; to verify if OK was click

For $i=1 To $items[0]
        $check[$i] = GuiRead ($check[$i])  ; get the type value
        If $check[$i]=1 Then
            msgbox(0,"Installing " , $items[$i])  ; will display the typed value
        EndIf
Next
endif

edit:

You can also do some fun stuff like making some non optional, or preselected.

GUISetControlEx ( "AutoIt3", 129); would have it checked and unable to be changed
Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
Share on other sites

I'd rather not use a constantly updated beta AutoIt-GUI, since each new release can/will break older scripts.

I am also stuck in the AutoIt 2.xx world. I've used it for a couple of years, and it works great. I've not (yet) had a need to go up to version 3.xx.

So the great info you provided, I have no idea how to decipher. I'm not a programmer by nature, so v2.xx makes sense to me. You "programming types" probably love v3.xx. =)

Thanks for the input,

Aaron

You might think of using AutoIt to do it. :ph34r:

You can also do some fun stuff like making some non optional, or preselected.

Link to comment
Share on other sites

You can use AutoIt's under-appreciated "console" ... like in the old DOS days: to list the options with a letter assigned to each option; then you choose a letter and press enter and it toggles / executes that option :ph34r:

Cyberslug's debugger opened my eyes to the console...

;open the console window like this..
    WinActivate(AutoItWinGetTitle())

;append to the console like this
    $message = "LIne of text / option to append to the console"
    Local $previous = ControlGetText( AutoItWinGetTitle(),"", "Edit1")
    ControlSetText( AutoItWinGetTitle(),"", "Edit1", $previous & $message & @CRLF)
    ControlSend( AutoItWinGetTitle(),"", "Edit1", "^{END}")

It's actually very simple, you're just updating a string all the time.

Have fun, hope it helps :(

Link to comment
Share on other sites

You can use AutoIt's under-appreciated "console" ... like in the old DOS days: to list the options with a letter assigned to each option; then you choose a letter and press enter and it toggles / executes that option  :ph34r:

Cyberslug's debugger opened my eyes to the console...

;open the console window like this..
    WinActivate(AutoItWinGetTitle())

;append to the console like this
    $message = "LIne of text / option to append to the console"
    Local $previous = ControlGetText( AutoItWinGetTitle(),"", "Edit1")
    ControlSetText( AutoItWinGetTitle(),"", "Edit1", $previous & $message & @CRLF)
    ControlSend( AutoItWinGetTitle(),"", "Edit1", "^{END}")

It's actually very simple, you're just updating a string all the time.

Have fun, hope it helps  :(

<{POST_SNAPBACK}>

This script doesn't work for me. What's the "console"?
Link to comment
Share on other sites

Seeing as AutoIt GUI is still in an evolving state, I would rather not program for it.

Does any one know of a simple, free, configurable menu system for Windows? 

Here's what I want:

A simple menu window lists all the programs that can be installed, with a check box next to each one. I can select the programs that need to be installed on this particular machine. A "Go" box at the bottom runs the autoit scripts for the selected applications. And, a simple "I'm done"-type message box pops up when the application installations are complete.

I've scripted the installations for all the progams in AutoIt, but have not been able to come up with a simple "front-end" for my task.

Any ideas?

Thanks,

Aaron

<{POST_SNAPBACK}>

Your best bet would be to try using the atool program on the Yahoo! group site or one of Larry's fine AutGui programs to create a menu system that will work under any language that can access environment variables. I can send you a sample if you email me....
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...