Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/18/2022 in all areas

  1. ComboBox is below the toolbar, either position it lower or place the GuiCtrlCreateCombo above the toolbar for example: #include <ComboConstants.au3> Global $g_hMainGui = GUICreate("Text Editor", $WIDTH, $HEIGHT, -1, -1, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE) Global $g_idFontNames = GUICtrlCreateCombo("", $WIDTH - 170, 10, 160, 20, Bitor($CBS_SORT,$CBS_DROPDOWN,$CBS_AUTOHSCROLL,$WS_VSCROLL)) GUICtrlSetData($g_idFontNames, _RegEnumVal($FONTKEY));ALSOHERE Global $g_idFontSizes = GUICtrlCreateCombo("", $WIDTH - 200, 10, 20, 20, Bitor($CBS_SORT,$CBS_DROPDOWN,$CBS_AUTOHSCROLL,$WS_VSCROLL)) Global $g_hToolBar = _GUICtrlToolbar_Create($g_hMainGui) ...
    1 point
  2. How does this differ from the question you already asked nearly 2 years ago ? https://www.autoitscript.com/forum/topic/203486-file-read/?do=findComment&comment=1461145
    1 point
  3. Since you're only overwriting the values you can just use IniWrite without the IniRead or use the function more efficiently, for example: _SaveIni("Key1", "ExpectedValue1") _SaveIni("Key2", "ExpectedValue2") _SaveIni("Key3", "ExpectedValue3") Func _SaveIni($_sKey, $_sValue) Local $sFilePath = @ScriptDir & "\FilePath.ini" Local $sSection = "Section" Local $sIniRead = IniRead($sFilePath, $sSection, $_sKey, "") If $sIniRead = $_sValue Then Return IniWrite($sFilePath, $sSection, $_sKey, $_sValue) EndFunc
    1 point
×
×
  • Create New...