title: Autohotkey / AHK - Param %1% not accessible within a function
body: <p>I'm having a problem with accessing the %1% ( Startup Param that has been passed to the Script by the console ) in Autohotkey.</p>
  
  <p>When I use the following code (outside of a function):</p>
  
  <pre><code>Msgbox %1%
  </code></pre>
  
  <p>I get the output of the Param that has been passed to the Script. But as soon as I use the following Code:</p>
  
  <pre><code>HelloWorld() {
      Msgbox %1% 
  }
  HelloWorld()
  </code></pre>
  
  <p>The output is empty.</p>
  
  <p>I also tried to assign %1% to a global variable, or to pass it to the Function as a parameter but it didn't work for me neither.</p>
  
  <p>Thank you</p>