Hmm, obviously the WParam is just the value of the virtual key scancode, as you can see here:
Code:
{ Virtual Keys, Standard Set }
VK_CONTROL = 17; //=$11
{$EXTERNALSYM VK_MENU}
VK_MENU = 18; //=$12
(also fits for the other keys, I checked it)
Sending that myself works:
Code:
SendMessage($C0A52, WM_USER+47364, VK_MENU, $20000001);
SendMessage($C0A52, WM_USER+47364, Ord('P'), $20000001);
Thanks! Now all I have to do is to find a nice way to get that window handle...