win32api.keybd_event


模拟键盘键按下事件。

摘      自: Win32 虚拟键码

另请参阅:

Basic Usage     Detailed Usage

Python

模拟键盘 Page Up 键
win32api.keybd_event(33, 0, 0, 0)
win32api.keybd_event(33, 0, win32con.KEYEVENTF_KEYUP, 0)
 
模拟键盘 Page Down 键
win32api.keybd_event(34, 0, 0, 0)
win32api.keybd_event(34, 0, win32con.KEYEVENTF_KEYUP, 0)
			

 

Copyright Notice: This article is an exclusive original manuscript, copyright belongs to Happy Digits Software , shall not be reproduced without permission.