Jump to content

Newbie needs help


top
 Share

Recommended Posts

code doesnt work

i dont know why

please help

thanks in advance.

#include <GUIConstants.au3>

GuiCreate("Open", 260, 100)
$Label_1 = GuiCtrlCreateLabel("Open:", 10, 10, 60, 20)
$Combo_1 = GuiCtrlCreateCombo("", 80, 10, 170, 20)
$Button_1 = GuiCtrlCreateButton("Browse", 170, 70, 80, 20)

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $Button_1
        $var = FileOpenDialog("Open File", @DesktopDir, "Programs (*.exe)|All files (*.*)")
        GUICtrlSetData($Combo_1, $var)
  ;
    EndSelect
WEnd
Exit
Edited by top
Link to comment
Share on other sites

  • Developers

#include <GUIConstants.au3>

GuiCreate("Open", 260, 100)
$Label_1 = GuiCtrlCreateLabel("Open:", 10, 10, 60, 20)
$Combo_1 = GuiCtrlCreateCombo("", 80, 10, 170)
$Button_1 = GuiCtrlCreateButton("Browse", 170, 70, 80, 20)

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $Button_1
        $var = FileOpenDialog("Open File", @DesktopDir, "Programs (*.exe)|All files (*.*)")
        GUICtrlSetData($Combo_1, $var , $var)
  ;
    EndSelect
WEnd
Exit

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...