使用“组合键消息”命令的时候出现以下问题
命令行为:
按组合键消息 (取句柄 (“notepad.exe”), #A键, 0) ' “notepad.exe”为系统自带的记事本进程
测试结果为:
AA ←—— 出现2次“A”
命令行为:
按组合键消息 (取句柄 (“notepad.exe”), #A键, #Ctrl键) ' #Ctrl键,ALT,SHIFT测试过
测试结果为:
AA ←—— 出现2次“A”
====================================================================
突发奇想,这个“按组合键消息”的功能原理到底是怎么样的,结果进行了以下测试行为
====================================================================
命令行为:
按组合键消息 (取句柄 (“notepad.exe”), #A键, #B键)
测试结果为:
ABA ←—— 出现2次“A”
命令行为:
按组合键消息 (取句柄 (“notepad.exe”), #A键, #B键, #C键)
测试结果为:
ABCA ←—— 出现2次“A”
命令行为:
按组合键消息 (取句柄 (“notepad.exe”), #A键, #B键, #C键, #D键)
测试结果为:
ABCDA ←—— 出现2次“A”
估计“按组合键”和“按组合键消息”可能都有问题,望解决
百度统计
最新回复