title: What's the alternative command in AHK_L or AHK Basic as @HotKeyPressed in AutoItv3?
body: <p>The background is I'm writing <a href="https://github.com/voidmous/PUF/tree/devel" rel="nofollow">a small script</a> to pop up an application window with hotkeys, both application and hotkey can be customized with an <code>ini</code> file. I've completed it with AutoItv3 and it works fine for me. Now I'm considering re-implementing it with AHK_L(preferred) or Basic, yet I can't find the alternative way of doing <code>dynamically binding hotkeys</code> in AHK while in AutoIt <code>@HotKeyPresssed</code> is helpful as discussed <a href="http://www.autoitscript.com/forum/topic/63526-hotkeyset-function-parameters/" rel="nofollow">here</a>. </p>
  
  <p>My code in AutoItv3 is basically like this:</p>
  
  <pre><code>For 1 to $NumberOfKeys
     $Key = ReadOneKeyFromIniFile()
     HotKeySet($Key,"_Main")
  Next
  Func _Main()
     $AppKeyBind = @HotKeyPressed
     $Parameters = ReadParametersFromIniFileAccordingToKey($AppKeyBind)
     PopUpWindowWithHotKey($Parameters)
  EndFunc
  </code></pre>
  
  <p><code>@HotKeyPressed</code> used here is mainly aiming to break the limitation that <code>HotKeySet()</code> can't bind <code>$Key</code> to function <code>_Main</code> <strong>with parameters</strong>.</p>