Sorry, the diff of this file is not supported yet
+1
-1
| { | ||
| "name": "win32-fun", | ||
| "version": "1.1.0", | ||
| "version": "1.1.1", | ||
| "description": "disk memory information, put the monitor into sleep mode, wake up the monitor, set volume", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/sid-max1996/win32-fun", |
+1
-1
@@ -5,3 +5,3 @@ #include "screen.h" | ||
| void ScreenSleep() { | ||
| SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM)2); | ||
| SendMessage(GetConsoleWindow(), WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM)2); | ||
| } | ||
@@ -8,0 +8,0 @@ |
+2
-1
@@ -1,2 +0,2 @@ | ||
| const win32Fun = require('./index') | ||
| const win32Fun = require("./index"); | ||
@@ -40,1 +40,2 @@ /******* Test check space ********/ | ||
| // win32Fun.turnOffMonitor(); |
11261
0.79%15
7.14%58
1.75%