Releases: NSTechBytes/KeyCodeInfo
Releases · NSTechBytes/KeyCodeInfo
v1.1
-
Feature Addition: OnReleaseKeyAction
- Introduced a new parameter,
OnReleaseKeyAction, read from the Rainmeter skin. - Added a new field
onReleaseKeyActionin theMeasureclass to store the command. - Implemented logic in the keyboard hook callback to trigger the action on key release:
- In combination mode (showCodeMode == 4), the action fires only when all keys are released.
- In other modes, the action fires on a key-up event, ensuring it is executed only once per key press cycle via a
releaseActionTriggeredflag.
- Introduced a new parameter,
-
Modification: Handling HideForce in Combination Mode
- Added a static variable
lastComboto store the last valid key combination. - Modified the
GetStringmethod to return the stored combination when no keys are pressed andHideForceis disabled.
- Added a static variable
-
Bug Fixes and Enhancements:
- Reset
releaseActionTriggeredon every key-down event to allow the OnReleaseKeyAction to trigger on subsequent key releases. - Improved tracking of pressed keys for combination mode by managing the key order list and key events dictionary.
- Enhanced logging in the
ExecuteCommandmethod for clearer state changes.
- Reset
-
General Code Clean-Up:
- Ensured proper clearing and disposal of timer and hook resources in
UnloadandFinalizemethods. - Maintained consistency in code structure and comments for better readability and maintenance.
- Ensured proper clearing and disposal of timer and hook resources in