I have a scriptable NPAPI browser plugin.
I would like to expose a method to javascript "MaximizeBrowser",
that will cause the browser window to maximize (as if the user pressed F11 in the broswer).
Is there a way to achieve that?
The selected answer works (at least on Windows)!
Here is my code, in case someone needs:
// simulate F11 keyboard key press
keybd_event(VK_F11,MapVirtualKey(VK_F11,0),0,0);
keybd_event(VK_F11,MapVirtualKey(VK_F11,0),KEYEVENTF_KEYUP,0);