Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Conversation

@zombob
Copy link

@zombob zombob commented Oct 21, 2021

No description provided.

_left_click.py Outdated
exit(0)

# 鼠标14可以用
mouse = 14
Copy link
Owner

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?

Copy link
Author

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, 根据机器情况修改
Copy link
Owner

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

Copy link
Author

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

This is a port (not a [wrapper][wrp]) of [interception][c_ception] dll to python, it communicates directly with interception's driver

### 安装驱动
Interception.zip
Copy link
Owner

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
Copy link
Owner

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants