like input tap for BlueStacks instances, but without using ADB
pip install bstacksnoadbclick
Tested against Windows 10 / Python 3.11 / Anaconda / BlueStacks5
from bstacksnoadbclick import NoAdbClick
r"""
Class for performing clicks on BlueStacks instances without using ADB.
It creates a dummy macro and runs it (method: input_tap) using direct keystrokes (admin rights!!) to the BlueStacks window (hwnd) to activate it.
Args:
pid (int): Process ID of the BlueStacks instance.
macroname (str, optional): The name of the macro. Defaults to "pythonclickautomation".
click_duration_ms (int, optional): Duration of the click in milliseconds. Defaults to 1000.
start_ms (int, optional): Start time of the click in milliseconds. Defaults to 100.
macro_shortcut (str, optional): Keyboard shortcut for the macro. Defaults to "F12".
screen_width_emulator (Union[int, None], optional): Screen width of the emulator. Defaults to None.
screen_height_emulator (Union[int, None], optional): Screen height of the emulator. Defaults to None.
failsafe (Union[str, None], optional): Fail-safe key combination to prevent infinite loops. Defaults to None.
with_spaces (bool, optional): Include spaces in keystrokes. Defaults to True.
with_tabs (bool, optional): Include tabs in keystrokes. Defaults to True.
with_newlines (bool, optional): Include newlines in keystrokes. Defaults to True.
activate_window_before (bool, optional): Activate window before sending keystrokes. Defaults to False.
bluestacks_programm_data (str, optional): Path to BlueStacks data directory. Defaults to r"C:\ProgramData\BlueStacks_nxt".
Raises:
ValueError: If the shortcut is not in F-key format (e.g., F10, F12).
"""
self = NoAdbClick(
pid=22240,
macroname="pythonclickautomation",
click_duration_ms=1000,
start_ms=100,
macro_shortcut="F12",
screen_width_emulator=None,
screen_height_emulator=None,
failsafe=None,
with_spaces=True,
with_tabs=True,
with_newlines=True,
activate_window_before=False,
bluestacks_programm_data=r"C:\ProgramData\BlueStacks_nxt",
)
r"""
Perform a tap input at the specified coordinates.
Args:
x (int): X-coordinate of the tap.
y (int): Y-coordinate of the tap.
**kwargs: Additional keyword arguments for customization.
Keyword Args:
with_spaces (bool): Include spaces in keystrokes.
with_tabs (bool): Include tabs in keystrokes.
with_newlines (bool): Include newlines in keystrokes.
activate_window_before (bool): Activate window before sending keystrokes.
json_of_already_created_dummy_macro (str): Path to the already created macro JSON file.
screen_width_emulator (int): Screen width of the emulator.
screen_height_emulator (int): Screen height of the emulator.
click_duration_ms (int): Duration of the click in milliseconds.
start_ms (int): Start time of the click in milliseconds.
macro_shortcut (str): Keyboard shortcut for the macro.
"""
self.input_tap(300, 1000, click_duration_ms=10, start_ms=1)
Metadata
Release files for bstacksnoadbclick 0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bstacksnoadbclick-0.10.tar.gz | 7.7 kB | Without provenance | Details for bstacksnoadbclick-0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bstacksnoadbclick-0.10-py3-none-any.whl | Python 3 | none | any | Details for bstacksnoadbclick-0.10-py3-none-any.whl |
Total release size: 16.8 kB
Release files / bstacksnoadbclick-0.10.tar.gz
| Download URL | bstacksnoadbclick-0.10.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c0aea29fb336f03d63c44e884eb64a16621aea956be23b3d41cc1b9d63b4332
|
|
BLAKE2b-256 checksum How to use checksums |
a2f7efb3c42b3d15be1c186c463514854d5b0bafde4e03813d19a15c235943ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / bstacksnoadbclick-0.10-py3-none-any.whl
| Download URL | bstacksnoadbclick-0.10-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75b715eb44c416ecf7857c252816d86c4340e05ffcef31ca45f40a9848372b4a
|
|
BLAKE2b-256 checksum How to use checksums |
bc3c3d5c5c12d582eceea3a9c06fcdf15cd5b4f6bec2aae8eaefc951d9bbfc81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for bstacksnoadbclick 0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.