iceberg Posted October 30, 2006 Share Posted October 30, 2006 Hi, Can someone pls help me out here....I can't get the file executable path to stay put inside the "RUN" box. It can appear after selecting from FileOpenDialouge....but when i click on the inout box, it just disappears... #include <GuiConstants.au3> AutoItSetOption("TrayIconHide", 1) $value = InputBox("Info", "Please enter target's Computer Name", "", "") GuiCreate("Run", 339, 152,-1, -1); , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) $Icon_1 = GuiCtrlCreateIcon("shell32.dll", 24, 10, 20, 40, 30) $Label_2 = GuiCtrlCreateLabel("Type the name of a program, folder, document, or Internet resource, and Windows will open it for you.", 60, 20, 260, 30) $Label_3 = GuiCtrlCreateLabel("Open:", 10, 60, 30, 20) $Combo_4 = GuiCtrlCreateCombo("", 60, 60, 260, 21) $Button_5 = GuiCtrlCreateButton("Button5", 320, 120, 1, 1) $Button_6 = GuiCtrlCreateButton("Button6", 320, 120, 1, 10) $Button_7 = GuiCtrlCreateButton("Browse...", 250, 120, 70, 20) $Button_8 = GuiCtrlCreateButton("Cancel", 170, 120, 70, 20) $Button_9 = GuiCtrlCreateButton("OK", 90, 120, 70, 20) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_7 $var = FileOpenDialog("Open File", @DesktopDir, "Programs (*.exe)|All files (*.*)") $Combo_4 = GuiCtrlCreateCombo($var, 60, 60, 260, 21) Case $msg = $Button_8 Exit Case $msg = $Button_9 ; Case Else ; EndSelect WEnd Exit Thank you. mouse not found....scroll any mouse to continue. Link to comment Share on other sites More sharing options...
Valuater Posted October 30, 2006 Share Posted October 30, 2006 this??? Case $msg = $Button_7 $var = FileOpenDialog("Open File", @DesktopDir, "Programs (*.exe)|All files (*.*)") GUICtrlSetData($Combo_4, $var) 8) Link to comment Share on other sites More sharing options...
iceberg Posted October 30, 2006 Author Share Posted October 30, 2006 thanks for the reply valuater.... doesn't help tho. based on your codes....the $var was not even captured in the combo. mouse not found....scroll any mouse to continue. 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