Skip to content
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

How to do "mouse(down, 60)" and "hold_keys(BTN_LEFT)"? #958

Open
JordanPavlic opened this issue Sep 20, 2024 · 1 comment
Open

How to do "mouse(down, 60)" and "hold_keys(BTN_LEFT)"? #958

JordanPavlic opened this issue Sep 20, 2024 · 1 comment

Comments

@JordanPavlic
Copy link

I want to hold the mouse button to fire in a game and at the same time scroll down the mouse to overcome the gun recoil. Doing "hold_keys(BTN_LEFT).mouse(down, 60)" causes the fire button to be held and the scroll to happen after releasing the input button. How do I have it repeat both clicking the left mouse and scrolling down at the same time?

@TherinS
Copy link

TherinS commented Sep 26, 2024

What about these:

  1. Try replacing the .mouse with ,mouse in your original macro.
  2. hold_keys(BTN_LEFT,mouse(down,60))

I enclosed the desired hold sequence in parenthesis, indicating that the entire macro inside it should be executed. Try this also with the period or comma. In the examples.md file, there is this:
hold_keys(Control_L, a) holds down those two keys

It looks like they used a comma to hold the keys down instead of a period. If I remember right, a period tells Input-Remapper to execute each key before doing the next step, and the BTN_LEFT is not considered complete until it has the key down and key up completed, THEN will continue with the mouse function. Since you are holding the key down, it waits untill you release the key before moving the mouse.

Hope that works, just guessing on my part.

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

No branches or pull requests

2 participants