Skip to content

Implement SendButtonIfNoScroll#6

Open
resolritter wants to merge 2 commits intommikeww:masterfrom
resolritter:patch-1
Open

Implement SendButtonIfNoScroll#6
resolritter wants to merge 2 commits intommikeww:masterfrom
resolritter:patch-1

Conversation

@resolritter
Copy link

Implements the setting SendButtonIfNoScroll for sending Setting("Button") if scrolling does not happen

@resolritter resolritter changed the title Implements SendButtonIfNoScroll Implement SendButtonIfNoScroll Feb 16, 2023
@mmikeww
Copy link
Owner

mmikeww commented Feb 16, 2023

So, for me, the script already sends the Button in most cases.

  • There is already the DragDelay setting, which will send the Button if its released within this timeframe. So a quick click.

  • And the MovementCheckDelay setting, which will send the Button if its held longer than this duration. So a long held click.

Am I right that your addition will handle the timeframe between these?

@resolritter
Copy link
Author

resolritter commented Feb 17, 2023

SendButtonIfNoScroll is useful for situations where you entered the "dragging mode" (i.e. when your cursor changes if you have ChangeMouseCursor == true) but you didn't end up actually scrolling anything, so the button should be sent because that's what would happen without the script. i.e. certainly after DragDelay, but... Maybe after MovementCheckDelay? (I'm not sure if I understand MovementCheckDelay correctly, see below).

And the MovementCheckDelay setting, which will send the Button if its held longer than this duration. So a long held click.

It sounds like MovementCheckDelay is supposed to cover the use-case which I just mentioned, but it didn't work for me IIRC - hence why I came up with this new setting.

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

Successfully merging this pull request may close these issues.

2 participants