Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Via autohotkey I'm trying to

  1. Read the contents from a dropdown box
  2. Present the content to the user in a AHK GUI dropdown box
  3. Select the correct item in the original dropdown box via the input from the AHK dropdown box.

I have the following code so far:

CClass  = fpOCXComboBox209
Title   = ahk_class ThunderRT6FormDC

ControlGet, ItemList, List,, % CClass, % Title
Gui, Add, DropDownList, vDDL, % RegExReplace(ItemList,"`n","|")
Gui, Add, Button, gSetChoice, Select ; gLabel jumps to action.
Gui, Show, w300

    GuiControlGet, CurItem,, DDL
    Control, ChooseString, % CurItem, % CClass, % Title

GuiClose: ExitApp

The behavior when I test it, is when i press "Select" in the Gui dropdown box, the original dropdownbox is blanked (as if AHK tries to add a blank variable or something like that)

I believe the error might be in the last line "Control, ChooseString, % CurItem, % CClass, % Title", but I can't see why.

Anyone able to help me out?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.