Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.
This repository was archived by the owner on May 9, 2023. It is now read-only.

getkeystate blocks mouse input #10

Open
@peng-7273

Description

@peng-7273
import newmodule as module

handle = module.macro()

while 1:
    if handle.getkeystate(86):
        handle.sleep(1)
        handle.lmb_down()
        handle.sleep(100)
        handle.lmb_up()
        handle.sleep(1000)

this code allows me to click when v is pressed?
no, it only works if i put a 5 second sleep after the getkeystate statement
the getkeystate blocks the input of mouse
so you know, i wrapped interception in a module, clicks work fine without the getkeystate

any workaround or fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions