[Python] Mining with Left Mouse Button Down With CTypes

Discussão em 'Python' iniciado por Stack, Dezembro 1, 2024.

  1. Stack

    Stack Membro Participativo

    I want to do background digging. I made walking only currently I have a problem with digging that when I want to dig Minecraft detects that the button is pressed but it doesn't dig all, it only digs a block once. On the other hand when I turn on the script having Minecraft window active it digs normally.

    https://youtu.be/P9OC7cCF1Vc

    window = gw.getWindowsWithTitle('Feather Client')
    hwnd = ctypes.windll.user32.FindWindowW(None, window.title)
    ctypes.windll.user32.PostMessageW(hwnd, 0x0201, 1, 0)
    time.sleep(4)
    ctypes.windll.user32.PostMessageW(hwnd, 0x0202, 1, 0xC0000001)


    I expected all the blocks to be ditched, not one.

    Continue reading...

Compartilhe esta Página