how do I make a GUI out of these bat files..?

Discussion in 'other software & services' started by GUI_Tex, Feb 24, 2006.

Thread Status:
Not open for further replies.
  1. GUI_Tex

    GUI_Tex Registered Member

    Jan 14, 2006
    I made a batch file that calls other batchs files, if I type a 1 it gets that batch file, if I press 2 and enter it starts that program, it has 5 choices, I could add more but thats too much right now. I downloaded a tool called Autoit, It has it's own scripting language.. I got an example and it's very premitive, not actaully very good, but I could use a little help on getting the buttons to do functions like open programs.. e.g run a batch file, open notepad..

    ; button buster
    ; by gui_tex
    #include <GUIConstants.au3>
    $button1 = GUICtrlCreateButton ("1", 0,0,40,40,$BS_ICON)
    GUICtrlSetImage (-1, "shell32.dll",5)
    Opt("GUIOnEventMode", 1)
    WinWaitActive("Untitled - Notepad")[/b]
    ; does not work at all!! notepad starts up autmatically, buttons dont do anything
    $button2 = GUICtrlCreateButton ("2", 40,00,40,40,$BS_ICON)
    GUICtrlSetImage (-1, "shell32.dll",7)
    $button3 = GUICtrlCreateButton ("3", 80,00,40,40,$BS_ICON)
    GUICtrlSetImage (-1, "shell32.dll",22)
    $button4 = GUICtrlCreateButton ("4", 120,0,40,40,$BS_ICON)
    GUICtrlSetImage (-1, "shell32.dll",23)
    $button5 = GUICtrlCreateButton ("5", 160,0,40,40,$BS_ICON)
    GUICtrlSetImage (-1, "shell32.dll",32)
    $buttonclose = GUICtrlCreateButton ("close", 200,0,40,40,$BS_ICON)
    GUICtrlSetImage (-1, "shell32.dll",28)
    ; Run the GUI until the dialog is closed
    While 1
    	$msg = GUIGetMsg() 
    	If $msg = $GUI_EVENT_CLOSE Then ExitLoop
  2. trickyricky

    trickyricky Registered Member

    Mar 27, 2005
    London, UK
    Hey, are you trying to release a batch-file alternative to Windows Vista before MS manage to release the real thing? Sweet. ;)
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.