Today in the query mac端如何通过PyUserInput模拟键盘输入空格与回车
when this issue Baidu and Google are not search approach. I think it might be the reason relatively small minority. ( PyUserInput a Python for simulating mouse and keyboard operations package.)
According to past experience is to query the official API , unfortunately API has not detailed the use. This time how should I do?
Think of Python packages must have its github address , go after the source code found very clean.
Because I need the keyboard operation, so open pykeyboard
.
Since then my operating system is mac, so open mac.py, finally finally discover the source code to the instruction keyboard input spaces: k.tap_key(k.space)
Enter Enter the command: k.tap_key('Return')
.
Summary 1: when the content does not need to learn relevant blog posts, forums, and even no official API, should be directed to explore the source code.
Summary 2: simple program could look directly at the source, more than watching Bowen API efficiency.