Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rebind

Python client for the Rebind remote access WebSocket protocol. Blocking and asyncio APIs. Pure Python, works on Windows, macOS, and Linux.

Install

pip install rebind

Quick start

from rebind import RebindRemote

with RebindRemote("ws://127.0.0.1:19561") as r:
    r.hid_move(30, -5)
    r.hid_press("Mouse1", hold_ms=20)

    x, y = r.system_mouse()
    pixel = r.screen_pixel(x, y)

    for pos in r.mouse_events():
        print(pos.x, pos.y)
        if pos.x > 500:
            break

Async

from rebind import AsyncRebindRemote

async def main():
    async with AsyncRebindRemote("ws://127.0.0.1:19561") as r:
        x, y = await r.system_mouse()
        async for pos in r.mouse_events():
            print(pos.x, pos.y)

Links

About

Python client for the Rebind WebSocket protocol

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages