title: Main Handle Of A Window
body: <p>Just trying to use ControlSend but the program is still reluctant. Now I found out the Main Handle but I still don't know how to write it correctly. Helps getting appreciated.</p>
  
  <pre><code>;   Process: System.Diagnostics.Process (javaw)
  ;   Process ID: 4752
  ;   Handle Count: 430
  ;   Responding: Yes
  ;   Title: ?ok???O?
  ;                                               &lt;= Looks stange but this is the title.
  ;   ?
  ;   Main Handle: 1115426
  
  
  $mainHanlde = ""
  
  While 1
     ControlClick("", "", $mainHanlde,"{Down}")
     Sleep(900)
     ControlClick("", "", $mainHanlde,"{Down}")
     Sleep(900)
     ControlClick("", "", $mainHanlde,"{Down}")
     Sleep(900)
     ControlClick("", "", $mainHanlde,"a")
     Sleep(Random(750, 2000, 1))
     ControlClick("", "", $mainHanlde,"a")
     Sleep(Random(750, 2000, 1))
     ControlClick("", "", $mainHanlde,"a")
     Sleep(Random(750, 2000, 1))
     ControlClick("", "", $mainHanlde,"a")
     Sleep(3000)
  WEnd
  </code></pre>