Interception icon indicating copy to clipboard operation
Interception copied to clipboard

Incorrect keyboard key code correspondence ,Up, down, left ,right,=,- ,Delete,End,PageUp,Home

Open YangZhiBoGreenHand opened this issue 2 years ago • 1 comments

MapVirtualKey(37,MAPVK_VK_TO_VSC) —> 4 , but 37 actually is the left Can you give me your keyboard code?

YangZhiBoGreenHand avatar May 12 '22 03:05 YangZhiBoGreenHand

For CTRL key example

InterceptionKeyStroke ctrl_down_left = { 0x1D,INTERCEPTION_KEY_DOWN };
InterceptionKeyStroke ctrl_down_right = { 0x1D,INTERCEPTION_KEY_DOWN | INTERCEPTION_KEY_E0 };
InterceptionKeyStroke ctrl_up_left = { 0x1D,INTERCEPTION_KEY_UP };
InterceptionKeyStroke ctrl_up_right = { 0x1D,INTERCEPTION_KEY_UP | INTERCEPTION_KEY_E0 };

for left ctrl key you only need INTERCEPTION_KEY_DOWN with code 0x1d for right ctrl key you have same code but two flags: INTERCEPTION_KEY_DOWN | INTERCEPTION_KEY_E0

s0bes avatar Nov 22 '22 07:11 s0bes