Conversation
_left_click.py
Outdated
| exit(0) | ||
|
|
||
| # 鼠标14可以用 | ||
| mouse = 14 |
There was a problem hiding this comment.
the code from line 25 to 27 exits if there is no mouse, why did you arbitrarily pick 14?
There was a problem hiding this comment.
sorry, 14 only works on my computer.
you need change it
_send_key.py
Outdated
| c.send(device, key_stroke(scancode,ScanCode.KEY_UP,0)) | ||
|
|
||
| if __name__ == "__main__": | ||
| device = 8 # 0-10, 根据机器情况修改 |
There was a problem hiding this comment.
In my opinion, an example should be more generic, I guess that 8 corresponds to your keyboard, but it's not the case in every machine, using a loop to search for keyboards or simply get it as input seems more appropriate
There was a problem hiding this comment.
You are right, I do use loop detection in use, but I haven't updated the code yet
| This is a port (not a [wrapper][wrp]) of [interception][c_ception] dll to python, it communicates directly with interception's driver | ||
|
|
||
| ### 安装驱动 | ||
| Interception.zip |
There was a problem hiding this comment.
A personal preference here : I prefer not including binary files, but rather a link to their original repositories
_get_keyboard.py
Outdated
| @@ -0,0 +1,9 @@ | |||
| # 此脚本返回 0 - 9 的所有数值, 似乎无法正确判断keyboard | |||
There was a problem hiding this comment.
comments in English are more appreciated, it's not my native language neither but it's widely understood
No description provided.