top Posted November 2, 2006 Share Posted November 2, 2006 (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 November 2, 2006 by top Link to comment Share on other sites More sharing options...
Developers Jos Posted November 2, 2006 Developers Share Posted November 2, 2006 #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 More sharing options...
top Posted November 2, 2006 Author Share Posted November 2, 2006 thank you 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