Preferably, you should use the
name of the v-variable, not its contents/text (at least not if its contents are blank). Then it works either way -> remove the %s:
The reason why it works when the Edit control is not blank, is this:
GuiControl Docs - Parameters wrote:Otherwise, specify for ControlID either ClassNN (the classname and instance number of the control) or the control's text, both of which can be determined via Window Spy. When using text, the matching behavior is determined by SetTitleMatchMode.
But if there is no text (aka
blank), this can't work; there will be no match.
PS: I will move your topic from '
Bug Reports' to 'Ask for Help (v1)'.