title: Can't get ControlGet to work
body: <p>Here's my script:</p>
  
  <pre><code>ControlGet, Output, Hwnd,,, ahk_id TV_REMOTEDESKTOP_CLASS1
  
  MsgBox %Output%
  
  PostClick(%Output%, 1170, 305, 10, 50)
  
  PostClick(hwnd, X, Y, Count, Delay)
  {
      p := y &lt;&lt; 16 | (x &amp; 0xffff)
      Loop, %Count% {
          PostMessage, 0x201, 1, p, , ahk_id %hwnd%
          If (Delay)
              Sleep Delay
          PostMessage, 0x202, 0, p, , ahk_id %hwnd%
          If (Delay)
              Sleep Delay
      }
  }
  </code></pre>
  
  <p>And I can't get it to work!
  I want to make it click on X Y pos, in a program that isn't visible/without moving mouse.</p>
  
  <p>I could use Click, but then I'd have to have the program open AND it would move the mouse to each click.</p>
  
  <p>PostClick function from: <a href="http://www.autohotkey.com/board/topic/35742-postmessage-click-useful-hwnd-clicker/" rel="nofollow">http://www.autohotkey.com/board/topic/35742-postmessage-click-useful-hwnd-clicker/</a></p>
  
  <p>I'm unsure how to do it.</p>
  
  <p>edit:</p>
  
  <pre><code>ControlGet, chwnd, Hwnd,,, ahk_id TV_REMOTEDESKTOP_CLASS1
  PostClick(chwnd, 1223, 395, 10, 50)
  
  PostClick(hwnd, X, Y, Count, Delay)
  {
      p := y &lt;&lt; 16 | (x &amp; 0xffff)
      Loop, %Count% {
          PostMessage, 0x201, 1, p, , ahk_id %hwnd%
          If (Delay)
              Sleep Delay
          PostMessage, 0x202, 0, p, , ahk_id %hwnd%
          If (Delay)
              Sleep Delay
      }
  }
  </code></pre>
  
  <p>is my new code. (tried someones script)
  My mouse positions according to au3_spy:</p>
  
  <p>In Active Window: 1223, 395
  On Screen: 1136, 398</p>