11-21-2011, 07:09 PM
Do you use this SendKey?
int m1 m2 lp=MapVirtualKey(vk 0)<<16|1 ;;should be Ex with HKL of hwnd, although probably nobody will use it
sel(vk) case [3,33,34,35,36,37,38,39,40,44,45,46,91,92,93,111,144,VK_RCONTROL,VK_RMENU] lp|0x1000000 ;;ek
if(flags&3|2) PostMessage hwnd WM_KEYDOWN vk lp
if(flags&3|1) PostMessage hwnd WM_KEYUP vk lp|0xC0000000
It does not support Ctrl Shift etc. Posts key messages, but does not set key state. Somewhere here should be better version, SendKeysToWindow.
int m1 m2 lp=MapVirtualKey(vk 0)<<16|1 ;;should be Ex with HKL of hwnd, although probably nobody will use it
sel(vk) case [3,33,34,35,36,37,38,39,40,44,45,46,91,92,93,111,144,VK_RCONTROL,VK_RMENU] lp|0x1000000 ;;ek
if(flags&3|2) PostMessage hwnd WM_KEYDOWN vk lp
if(flags&3|1) PostMessage hwnd WM_KEYUP vk lp|0xC0000000
It does not support Ctrl Shift etc. Posts key messages, but does not set key state. Somewhere here should be better version, SendKeysToWindow.