Sign in to follow this  
Followers 0
top

Newbie needs help

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



#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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0