wander Posted July 23, 2009 Share Posted July 23, 2009 Hi. Its me again. The problem now is that GuiCtrlSetData is not working. Here is my script: $SavePath = GUICtrlCreateInput("", 368, 368, 209, 21) If FileExists ($ini) Then GuiCtrlSetData($SavePath, $dir) Else EndIf $Browser = GUICtrlCreateButton("...", 608, 372, 35, 17, 0) GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif") GUICtrlSetColor(-1, 0x00FFFF) GUICtrlSetBkColor(-1, 0x1A1A1A) GUICtrlSetCursor (-1, 0) Case $Browser $get = FileSelectFolder('Please select a directory', @DesktopDir, 5, GUICtrlRead($SavePath), $Form) If Not @error Then GUICtrlSetData($SavePath, $get) IniWrite($Ini, "Vitality Aion Directory", "Directory", GUICtrlRead($SavePath)) When i launch my app the data in $SavePath input is "1", can anyone tell me why's that? Link to comment Share on other sites More sharing options...
KaFu Posted July 23, 2009 Share Posted July 23, 2009 Ehm, that's a not functional extract only... Or did you mean something like $SavePath = GUICtrlCreateInput(IniRead($Ini, "Vitality Aion Directory", "Directory", ""), 368, 368, 209, 21) $Browser = GUICtrlCreateButton("...", 608, 372, 35, 17, 0) GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif") GUICtrlSetColor(-1, 0x00FFFF) GUICtrlSetBkColor(-1, 0x1A1A1A) GUICtrlSetCursor (-1, 0) Case $Browser $get = FileSelectFolder('Please select a directory', @DesktopDir, 5, GUICtrlRead($SavePath), $Form) If Not @error Then GUICtrlSetData($SavePath, $get) IniWrite($Ini, "Vitality Aion Directory", "Directory", GUICtrlRead($SavePath)) OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) 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