title: Autoit ControlClick not working with java application
body: <p>Im trying the test my Java app
  I created a jar file and I was able to run it with AutoIt3.</p>
  
  <p>Im trying to use the ControlClick functions but it doesnt work.
  I think its because the control info is empty (when using Au3Info the control tab is empty)
  This is the code:</p>
  
  <pre><code>$hWnd = WinWait("[CLASS:SunAwtFrame]","",10)
  ControlFocus ($hWnd, "", "[CLASS:SunAwtFrame]")
  ControlClick($hWnd,"","[CLASS:SunAwtFrame]", "left", 1, 120, 100)
  </code></pre>
  
  <p>I tried with or without the ControlFocus but without succsess
  I even tried only:</p>
  
  <pre><code>ControlClick("[CLASS:SunAwtFrame]","","[CLASS:SunAwtFrame]", "left", 1, 120, 100)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>ControlClick("[CLASS:SunAwtFrame]","","", "left", 1, 120, 100)
  </code></pre>
  
  <p>MouseClick works but I want to able to run the script even if windows is on logging screen
  (<a href="https://www.autoitscript.com/wiki/FAQ#Why_doesn.27t_my_script_work_on_a_locked_workstation.3F" rel="nofollow">https://www.autoitscript.com/wiki/FAQ#Why_doesn.27t_my_script_work_on_a_locked_workstation.3F</a> you can see here what u need to do to enable it, the function you can and cannot use.)</p>