1

Тема: AHK: Очистка DropDownList

Нужно удалить все пункты в DropDownList, ибо при GuiControl их просто добавляет.

Win10: LTSC (21H2); AHK: ANSI (v1.1.36.02)

2

Re: AHK: Очистка DropDownList

GUI, Add, DropDownList, vColorChoice, Black|White|Red|Green|Blue
GUI, Show
Return
F3:: GuiControl, , ColorChoice, | ;Очистить список
AutoHotkey.chm пишет:

GuiControl, Sub-command, ControlID [, Param3]
GuiControl, (blank):
Tab/DropDownList/ComboBox/ListBox: Param3 should contain a pipe-delimited list of entries to be appended at the end of the control's list. To replace (overwrite) the list instead, include a pipe as the first character (e.g. |Red|Green|Blue). To make the control empty, specify only a pipe character (|). To have one of the entries pre-selected, include two pipes after it (e.g. Red|Green||Blue). The separator between fields may be changed to something other than pipe. For example, Gui +Delimiter`n would change it to linefeed and Gui +DelimiterTab would change it to tab (`t).

3

Re: AHK: Очистка DropDownList

ypppu, оуу.. Спасибо, чего то я упустил это.

(Можно закрывать)

Win10: LTSC (21H2); AHK: ANSI (v1.1.36.02)