From 51ca5767e5fd4a52b834c85cbd072da49244af3e Mon Sep 17 00:00:00 2001 From: Simon Tushev Date: Sat, 16 Apr 2022 13:17:27 +0500 Subject: [PATCH] fix typos --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6760e6f..62e1e4d 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ ![GitHub](https://img.shields.io/github/license/tushev/presssleepkey) ![C#](https://img.shields.io/badge/language-C%23-green) ![.NET 6](https://img.shields.io/badge/runtime-.NET%206-blueviolet) -The story of this app is very simple: I had a keyboard with dedicated **Sleep** key, that I used for turning my display off. Not locking, just shutting down the display. -After a while, I replaced my keyboard with a newer one, with lots of cool features, and programmable keys (CORSAIR K55 RGB PRO XT). +The story of this app is very simple: I had a keyboard with dedicated **Sleep** key, that I used for turning my display off. Not locking, just shutting down the display.
+After a while, I replaced my keyboard with a newer one, with lots of cool features, and programmable keys (CORSAIR K55 RGB PRO XT).
However, it turned out that it is not possible to make one of the keys function like dedicated **Sleep** key. -This program sends (WM_SYSCOMMAND)[https://docs.microsoft.com/en-us/windows/win32/menurc/wm-syscommand] WinAPI message with `SC_MONITORPOWER, 2` params. +This program sends [WM_SYSCOMMAND](https://docs.microsoft.com/en-us/windows/win32/menurc/wm-syscommand) WinAPI message with `SC_MONITORPOWER, 2` params. This message shuts the display off. Normally, Windows should turn the monitor on if the user moves the mouse or presses any key.