-
Notifications
You must be signed in to change notification settings - Fork 12
左键点击interception #6
base: master
Are you sure you want to change the base?
Conversation
_left_click.py
Outdated
@@ -26,6 +26,8 @@ | |||
print("No mouse found") | |||
exit(0) | |||
|
|||
# 鼠标14可以用 | |||
mouse = 14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, I do use loop detection in use, but I haven't updated the code yet
@@ -1,6 +1,9 @@ | |||
# interception_py | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments in English are more appreciated, it's not my native language neither but it's widely understood
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right
No description provided.