title: Programmatically opening Tools Menu of F12 Internet Explorer Developer tools Using PostMessage and ALT+T
body: <p>I'm trying to programmatically open the pull-down menu, "Tools", of the F12 Developer Tools Of an instance of Internet Explorer by using a series of calls to the function PostMessage simulating the action (ALT+T) as described below. <br> <br>
  I have the handle of the IE instance and it's children windows.
  I'm using this code to simulate ALT+T which does the intended work on similar windows.</p>
  
  <pre><code>PostMessage(hDevTools, WM_SYSKEYDOWN, VK_MENU, 0x20380001);
  PostMessage(hDevTools, WM_SYSKEYDOWN, 'T'    , 0x20000001);
  PostMessage(hDevTools, WM_SYSCHAR   , 'T'    , 0x20000001);
  PostMessage(hDevTools, WM_SYSKEYUP  , 'T'    , 0xE0000001);
  PostMessage(hDevTools, WM_SYSKEYUP  , VK_MENU, 0xC0380001);
  </code></pre>
  
  <p><strong>My problem is</strong> that I don't know what handle should I post these messages to.
  <br>
  I used Microsoft Spy++ to find the handle of IE Dev Tools window and it's children and I've tried PostMessaging to most of them, but no luck. the Tools menu is not opening.
  <br> <br>
  I should add that (for test purposes) I have PostMessaged these combinations to the document window of the Internet Explorer and the Tools Menu of the main window of IE was opened.</p>