bstacksnoadbclick


Namebstacksnoadbclick JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/bstacksnoadbclick
Summarylike input tap for BlueStacks instances, but without using ADB
upload_time2024-03-29 03:47:19
maintainerNone
docs_urlNone
authorJohannes Fischer
requires_pythonNone
licenseMIT
keywords bluestacks click
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            

# like input tap for BlueStacks instances, but without using ADB

## pip install bstacksnoadbclick

### Tested against Windows 10 / Python 3.11 / Anaconda / BlueStacks5


```PY
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)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/bstacksnoadbclick",
    "name": "bstacksnoadbclick",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "bluestacks, click",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a2/f7/efb3c42b3d15be1c186c463514854d5b0bafde4e03813d19a15c235943ae/bstacksnoadbclick-0.10.tar.gz",
    "platform": null,
    "description": "\r\n\r\n# like input tap for BlueStacks instances, but without using ADB\r\n\r\n## pip install bstacksnoadbclick\r\n\r\n### Tested against Windows 10 / Python 3.11 / Anaconda / BlueStacks5\r\n\r\n\r\n```PY\r\nfrom bstacksnoadbclick import NoAdbClick\r\n\r\nr\"\"\"\r\nClass for performing clicks on BlueStacks instances without using ADB.\r\nIt creates a dummy macro and runs it (method: input_tap) using direct keystrokes (admin rights!!) to the BlueStacks window (hwnd) to activate it.\r\n\r\nArgs:\r\n    pid (int): Process ID of the BlueStacks instance.\r\n    macroname (str, optional): The name of the macro. Defaults to \"pythonclickautomation\".\r\n    click_duration_ms (int, optional): Duration of the click in milliseconds. Defaults to 1000.\r\n    start_ms (int, optional): Start time of the click in milliseconds. Defaults to 100.\r\n    macro_shortcut (str, optional): Keyboard shortcut for the macro. Defaults to \"F12\".\r\n    screen_width_emulator (Union[int, None], optional): Screen width of the emulator. Defaults to None.\r\n    screen_height_emulator (Union[int, None], optional): Screen height of the emulator. Defaults to None.\r\n    failsafe (Union[str, None], optional): Fail-safe key combination to prevent infinite loops. Defaults to None.\r\n    with_spaces (bool, optional): Include spaces in keystrokes. Defaults to True.\r\n    with_tabs (bool, optional): Include tabs in keystrokes. Defaults to True.\r\n    with_newlines (bool, optional): Include newlines in keystrokes. Defaults to True.\r\n    activate_window_before (bool, optional): Activate window before sending keystrokes. Defaults to False.\r\n    bluestacks_programm_data (str, optional): Path to BlueStacks data directory. Defaults to r\"C:\\ProgramData\\BlueStacks_nxt\".\r\n\r\nRaises:\r\n    ValueError: If the shortcut is not in F-key format (e.g., F10, F12).\r\n\"\"\"\r\n\r\n\r\nself = NoAdbClick(\r\n    pid=22240,\r\n    macroname=\"pythonclickautomation\",\r\n    click_duration_ms=1000,\r\n    start_ms=100,\r\n    macro_shortcut=\"F12\",\r\n    screen_width_emulator=None,\r\n    screen_height_emulator=None,\r\n    failsafe=None,\r\n    with_spaces=True,\r\n    with_tabs=True,\r\n    with_newlines=True,\r\n    activate_window_before=False,\r\n    bluestacks_programm_data=r\"C:\\ProgramData\\BlueStacks_nxt\",\r\n)\r\n\r\nr\"\"\"\r\nPerform a tap input at the specified coordinates.\r\n\r\nArgs:\r\n    x (int): X-coordinate of the tap.\r\n    y (int): Y-coordinate of the tap.\r\n    **kwargs: Additional keyword arguments for customization.\r\n\r\nKeyword Args:\r\n    with_spaces (bool): Include spaces in keystrokes.\r\n    with_tabs (bool): Include tabs in keystrokes.\r\n    with_newlines (bool): Include newlines in keystrokes.\r\n    activate_window_before (bool): Activate window before sending keystrokes.\r\n    json_of_already_created_dummy_macro (str): Path to the already created macro JSON file.\r\n    screen_width_emulator (int): Screen width of the emulator.\r\n    screen_height_emulator (int): Screen height of the emulator.\r\n    click_duration_ms (int): Duration of the click in milliseconds.\r\n    start_ms (int): Start time of the click in milliseconds.\r\n    macro_shortcut (str): Keyboard shortcut for the macro.\r\n\"\"\"\r\nself.input_tap(300, 1000, click_duration_ms=10, start_ms=1)\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "like input tap for BlueStacks instances, but without using ADB",
    "version": "0.10",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/bstacksnoadbclick"
    },
    "split_keywords": [
        "bluestacks",
        " click"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bc3c3d5c5c12d582eceea3a9c06fcdf15cd5b4f6bec2aae8eaefc951d9bbfc81",
                "md5": "3e74849b71b93493b3e40c6396fc142b",
                "sha256": "75b715eb44c416ecf7857c252816d86c4340e05ffcef31ca45f40a9848372b4a"
            },
            "downloads": -1,
            "filename": "bstacksnoadbclick-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3e74849b71b93493b3e40c6396fc142b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9083,
            "upload_time": "2024-03-29T03:47:17",
            "upload_time_iso_8601": "2024-03-29T03:47:17.918548Z",
            "url": "https://files.pythonhosted.org/packages/bc/3c/3d5c5c12d582eceea3a9c06fcdf15cd5b4f6bec2aae8eaefc951d9bbfc81/bstacksnoadbclick-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2f7efb3c42b3d15be1c186c463514854d5b0bafde4e03813d19a15c235943ae",
                "md5": "2c83257d431441ce55c765d35c33471e",
                "sha256": "7c0aea29fb336f03d63c44e884eb64a16621aea956be23b3d41cc1b9d63b4332"
            },
            "downloads": -1,
            "filename": "bstacksnoadbclick-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "2c83257d431441ce55c765d35c33471e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7705,
            "upload_time": "2024-03-29T03:47:19",
            "upload_time_iso_8601": "2024-03-29T03:47:19.819773Z",
            "url": "https://files.pythonhosted.org/packages/a2/f7/efb3c42b3d15be1c186c463514854d5b0bafde4e03813d19a15c235943ae/bstacksnoadbclick-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-29 03:47:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "bstacksnoadbclick",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "bstacksnoadbclick"
}
        
Elapsed time: 0.22313s