win32api keybd_event 虚拟键码表
通过虚拟键码表,调用win32api.keybd_event,让键盘输出想要内容
# 执行ctrl(17) + V(86)按钮 win32api.keybd_event(17, 0, 0, 0) win32api.keybd_event(86, 0, 0, 0) win32api.keybd_event(86, 0, win32con.KEYEVENTF_KEYUP, 0) # 松开按键 win32api.keybd_event(17, 0, win32con.KEYEVENTF_KEYUP, 0)