title: AutoHotkey type entries from ListBox
body: <p>I am new to AutoHotkey and have no programming experience, so sorry to ask what to many of you may be a very mundane question.
  One of my main uses for AutoHotkey will be to complete data in records I keep from an AutoHotkey ListBox.
  Using replies to other forum questions I have a working script as follows:</p>
  
  <pre><code>:*:\lb::
  Gui, Add, ListBox, h100 vLB, apple||bannana|cantaloup|kiwi|orange|pomegranate|strawberry
  Gui, Add, Button, Default, Input
  Gui, Show
  return
  
  ButtonInput:
  Gui, Submit
  SendInput, %LB%
  Gui, Destroy
  Return
  </code></pre>
  
  <p>I wanted to include “, NoHide” after “Gui, Submit” above, but if I do that the script no longer works.
  Is there any way I can use the hotstring just once to launch the ListBox then have it stay on the desktop, so I can select other items as and when I get to other places in the records I keep where I need to select a different entry from the Listbox? If I remove "Gui, Destroy" from the script, the script also no longer works, so that does not appear to be the solution.
  Thanks in advance to anyone who can help.</p>