aaronwoolf Posted August 30, 2004 Share Posted August 30, 2004 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 More sharing options...
scriptkitty Posted August 30, 2004 Share Posted August 30, 2004 (edited) You might think of using AutoIt to do it. $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 August 30, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
aaronwoolf Posted August 30, 2004 Author Share Posted August 30, 2004 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. You can also do some fun stuff like making some non optional, or preselected. Link to comment Share on other sites More sharing options...
alawoona Posted August 30, 2004 Share Posted August 30, 2004 Tho I prefer to use autoit you could try the Gui4Cli freeware: http://users.hol.gr/~dck/g4c/ Link to comment Share on other sites More sharing options...
trids Posted August 31, 2004 Share Posted August 31, 2004 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 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 More sharing options...
jeffmikels Posted August 31, 2004 Share Posted August 31, 2004 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 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 More sharing options...
jeffmikels Posted August 31, 2004 Share Posted August 31, 2004 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 More sharing options...
sykes Posted September 3, 2004 Share Posted September 3, 2004 Not sure if it's *exactly* what you're looking for but I have used Quick Menu Builder in the pastClick Here to download a copyorClick Here to visit the authors web site. We have enough youth. How about a fountain of SMART? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now