From e7534ee0a579c7642ef693da1310468b8c1f8fbd Mon Sep 17 00:00:00 2001 From: Sean McArdle Date: Thu, 11 May 2017 11:23:43 -0700 Subject: [PATCH] Fixed writing to debug log on every tick rather than on every successful operation. --- KeyWatch++/Form1.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/KeyWatch++/Form1.cs b/KeyWatch++/Form1.cs index 10c1b81..4f2bfb1 100644 --- a/KeyWatch++/Form1.cs +++ b/KeyWatch++/Form1.cs @@ -73,9 +73,10 @@ namespace KeyWatch__ } if (_manageScroll) { if ((_scrolllockSelection == "Enabled" && !ScrollLock) || - (_scrolllockSelection == "Disabled" && ScrollLock)) + (_scrolllockSelection == "Disabled" && ScrollLock)) { _sim.Keyboard.KeyPress(WindowsInput.Native.VirtualKeyCode.SCROLL); - Trace.WriteLine(String.Format("{0} - disable Scrolllock", DateTime.Now)); + Trace.WriteLine(String.Format("{0} - disable Scrolllock", DateTime.Now)); + } } _doingWork = false; }