When first looking at a DropDownList the selection is empty
So I select an entry using the following:
GuiControl, 1:ChooseString, DropDownListID, % "DDL Entry 1"Now the entry with the name "DDL Entry 1" is selected
But how do I clear the DropDownList selection, back to empty like it was when the script first started?
I tried:
GuiControl, 1:Choose, DropDownListID, 0And:
GuiControl, 1:ChooseString, DropDownListID, % ""But neither work
SOLUTION:
Setup the DropDownList with a hwnd as follows:
Gui, Add, DropDownList, hwndDDL_ID, Item1|Item2|Item3Then to clear it use:
SendMessage, 0x014E, -1, 0,, ahk_id %DDL_ID%