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

getkeystate blocks mouse input #10

Open
peng-7273 opened this issue Nov 1, 2022 · 2 comments
Open

getkeystate blocks mouse input #10

peng-7273 opened this issue Nov 1, 2022 · 2 comments

Comments

@peng-7273
Copy link

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?

@KendoClaw1
Copy link

same issue, did u find a solution for this?

@peng-7273
Copy link
Author

peng-7273 commented Feb 26, 2023 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants