控制台设置/集。可更改控制台设置,或获取控制台输入流
Project description
Console Set
控制台设置/集。可更改控制台设置,或获取控制台输入流
系统要求
支持的平台
- 操作系统: Windows 10/11 (64位)
- 架构: x64/AMD64
- Python: 3.14+
不支持的平台
- 32位 Windows 系统
- Linux 或 macOS
- ARM 架构 Windows
- Python 2.x
安装
从PyPI安装(推荐)
pip install conset
快速开始
基础使用
import conset
# 获取输入
conin = conset.conin()
if conin:
# 鼠标
print("鼠标位置: y = ", conin[-1]["mouse"]["pos"]["y"], ", x = ", conin[-1]["mouse"]["pos"]["y"])
# 键盘
if conin[-1]["keyboard"]["keydown"]:
print("按键: ", conin[-1]["keyboard"]["keyname"])
API 参考
conin()
conin()会返回一个列表,长度为控制台接收到的操作数量。
列表内的每个元素都是一个固定结构的字典,具体结构如下
{
"mouse": {
"pos": {
"y": 0, # int
"x": 0 # int
},
"button": None, # None, "left", "right"
"flag": None # None, "move", "double", "wheel", "hwheel"
},
"keyboard": {
"keydown": False, # False, True
"keyname": None, # None, str([keyname])
},
"control": {
"ralt": False, # False, True
"lalt": False, # False, True
"rctrl": False, # False, True
"lctrl": False, # False, True
"shift": False, # False, True
"numlock": False, # False, True
"scrolllock": False, # False, True
"capslock": False, # False, True
"enhanced_key": False # False, True
}
}
许可证
这是专有软件。请查看 LICENSE 文件了解详细条款。
重要: 使用本软件即表示您同意遵守许可证条款。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
conset-0.0.2.tar.gz
(21.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file conset-0.0.2.tar.gz.
File metadata
- Download URL: conset-0.0.2.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cd8e4d24fa09e649adc5f04a8506e485bd00bbbe4d980109720b9f634e3bbad
|
|
| MD5 |
3697c1fe8ba5beb6966133c6bf19b69a
|
|
| BLAKE2b-256 |
1307259c1c79d3f847f381890e49fcb6e5c7531a29a76829313a11a219ab7ae0
|
File details
Details for the file conset-0.0.2-py3-none-win_amd64.whl.
File metadata
- Download URL: conset-0.0.2-py3-none-win_amd64.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a8516ab34f217a2336bbb97a1b0b24ab620f5901609c9f3cd32b0fdf3dbdfc2
|
|
| MD5 |
4ded3f4c520676db135afc21ff2247e8
|
|
| BLAKE2b-256 |
5764784b7d654ff031fef18dd843ca7bb1ccb0e1fa0732957f11cfe814feccdd
|