jjzjj

EmulateKeyPress

全部标签

c++ - 当我想发送 "num8"时,SendInput 发送 "vk_up"?怎么会?

好吧,我正在尝试对游戏进行简单的修改,这是模拟按键的代码:#definePWNFUNC(a)staticcellAMX_NATIVE_CALLa(AMX*amx,cell*params)PWNFUNC(EmulateKeyPressINPUT){//Thisstructurewillbeusedtocreatethekeyboard//inputevent.INPUTip;//Setupagenerickeyboardevent.ip.type=INPUT_KEYBOARD;ip.ki.wScan=0;//hardwarescancodeforkeyip.ki.time=0;ip.ki