Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok, here's what I've got so far... I kinda know what I need to do, but it's just a matter of doing it now...</p> <p>Here's the window from Spy++, I locked onto the <strong><em>Chrome_RenderWidgetHostHWND</em></strong> and clicked the Back button on my keyboard. Here's what I got: <img src="https://i17.photobucket.com/albums/b92/xahrepap/MessagesToChrome.jpg" alt="alt text"></p> <p>So here's my assumptions, and I've been playing with this forever now, I just can't figure out the <em>values</em>.</p> <pre><code>IntPtr hWnd = FindWindow("Chrome_RenderWidgetHostHWND", null); SendMessage(hWnd, WM_KEYDOWN, VK_BROWSER_BACK, 0); SendMessage(hWnd, WM_KEYUP, VK_BROWSER_BACK, 0); </code></pre> <p>Now, I just don't know what I should make the WM_KEYDOWN/UP values or the VK_BROWSER_BACK/FORWARD values... I tried this:</p> <pre><code>const int WM_KEYDOWN = 0x100; const int WM_KEYUP = 0x101; const int VK_BROWSER_BACK = 0x6A; const int VK_BROWSER_FORWARD = 0x69; </code></pre> <p>The latter two values I got from the image I just showed, the ScanCodes for those two keys. I don't know if I did it right though. The former two values I got after searching google for the WM_KEYDOWN value, and someone used &amp;H100 and &amp;H101 for the two values. I've tried several other random ideas I've seen floating around. I just can't figure this out.</p> <p>Oh, and here's the SendMessage method </p> <pre><code> [DllImport("user32.dll", CharSet = CharSet.Auto)] static extern int SendMessage(IntPtr hwnd, int wMsg, int wParam, uint lParam); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload