gmamaladze / globalmousekeyhook

This library allows you to tap keyboard and mouse, detect and record their activity even when an application is inactive and runs in background.
MIT License
1.04k stars 257 forks source link

Key combination only triggering once #153

Open Peytoncl opened 2 years ago

Peytoncl commented 2 years ago
            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.