FAQ TWedge SendKeyStrokes 未应用 SHIFT 键 SendKeyStrokes 未应用 SHIFT 键 问题:从 HID 设备读取数据时,您尝试发送 SHIFT 键(或其他修饰键),但该键并未应用到您的按键中。 解决方案: 在发送按键之前添加一个延迟——见下方示例代码: SetDelayCharacter ("#"); SetDelayTime (200); if ( !SendKeyStrokes ("#{SHIFT+F7}")) NotifyWarning("Ignoring keystrokes sent to TWedge. Please set focus to the target application."); 对于 HID 设备,必须遵循特殊说明——请参阅用户手册 B.1.5 Send Keystrokes + B.1 USB HID Device。