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

Key combination only triggering once #153

Open
Peytoncl opened this issue Feb 17, 2022 · 0 comments
Open

Key combination only triggering once #153

Peytoncl opened this issue Feb 17, 2022 · 0 comments

Comments

@Peytoncl
Copy link

Peytoncl commented Feb 17, 2022

            var screenshotBind = Combination.FromString("Shift+Control+A");
            Action screenshotAction = TakeScreenshot;

            var assignment = new Dictionary<Combination, Action>
            {
                    {screenshotBind, screenshotAction}
            };

            Hook.GlobalEvents().OnCombination(assignment);
            Hook.GlobalEvents().MouseDownExt += MouseDown1;
            Hook.GlobalEvents().MouseUpExt += MouseUp1;

the key combination triggers once and wont run the action after that.

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

1 participant