-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
while_single
macro or ignore_release
parameter
#382
Comments
Not yet. But there is a feature request for that already: |
I'll close this since it's a duplicate |
I just learned that there is also a macro solution for that:
|
as far as I can tell this issue is about pressing repeatedly until any other key is pressed |
Not really, what I want is to let the right click down. |
so you want to have the right click pressed, until any other key is pressed
? |
Yes |
I don't think this is possible right now. If there was a Or I'll rename this issue and add a feature-request label to keep track of the |
I think the potential future however, |
This works already, but only if the "another key" is one of your mouse keys. key_down(BTN_RIGHT).
# wait until key released
if_single(
# released
# wait for another key press
if_single(None, None),
# other key pressed before the release, just continue
None
).
key_up(BTN_RIGHT) Edit: updated with new and don't forget to set the dropdown to "Mouse" |
while_single
macro or ignore_release
parameter
I think this issue (#382), #198 and #378 can all be solved with the mechanism I proposed in this #378 (comment) @sezanzeb It should also be simple to implement, so maybe a good candidate to work on the new injection system. |
My problem was solved with your solution |
Maybe we do both. How would you propose to allow the user to enable the mapping handler? |
we can have a mapping parameter for that. Maybe call it |
Is it possible to map a key single press(not hold) to continuously press right click, until I press another key?
The text was updated successfully, but these errors were encountered: