我要做到VB程序窗体在非活动状态下接收一个键会作出相应,例如F4键
要详细代码
cnypzhw不错,的确可以,如果是别的键呢?组合键怎么办?
MyHotKey = ((GetAsyncKeyState(vKeyCode) < 0))
改为MyHotKey = GetAsyncKeyState(vKeyCode) < 0
行不行?
要详细代码
cnypzhw不错,的确可以,如果是别的键呢?组合键怎么办?
MyHotKey = ((GetAsyncKeyState(vKeyCode) < 0))
改为MyHotKey = GetAsyncKeyState(vKeyCode) < 0
行不行?