You will see Sleep, Shut down, and Restart options if you click on the
Turning off the monitor display is possible by creating a desktop shortcut on Windows 11/10/8/7. This risewindows article will guide you on creating a desktop shortcut to turn off the monitor on Windows 11/10/8/7 without using third-party software.
How to Create a Shortcut to Turn Off the Monitor?
Implement the following actions to create a shortcut to turn off the monitor display on Windows 11/10/8/7:-
Step 1. First, right-click on the empty area of the desktop and select the
Step 2. Now, create Shortcut wizard opens. Copy and paste the following command into the location area, and then click on the
powershell.exe -Command "(Add-Type '[DllImport(\"user32.dll\")]public static extern int SendMessage(int hWnd,int hMsg,int wParam,int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)"
Step 3. After that, type a meaningful name (like Turn off monitor) in the box labeled with “Type a name for this shortcut,” and click on the
Step 4. Now, you can see a new shortcut with the name you have typed in the above step.
Step 5. Then, double-click the new shortcut on your desktop to turn off the monitor immediately without putting your computer to sleep.
Move the mouse cursor or tap the keyboard (or press the Power button for 1 second) to turn on the monitor; your monitor will immediately turn on.
Step 6. Next, right-click on the newly-created desktop shortcut and select
Step 7. Now, switch to the
Step 8. After that, place the cursor inside the
Step 9. Then, press any key from “A” to “Z” to assign a shortcut key when the cursor is inside the Shortcut key.
We have pressed the D key from the keyboard, and the window has assigned
Next, pressing the
Step 10. After that, drag the shortcut icon to the free area on the
Clicking on the Turn off monitor icon from the Taskbar will turn off the monitor immediately.
Step 11. Then, right-click on the shortcut and select
Step 12. Now, click on the
Step 13. Next, select any icon from the list you want to use, click
Now newly created shortcut turn-off monitor icon is changed.
Step 14. After that, if you would like to access the
How to Turn Off the Monitor using a batch file?
It is also possible to turn off the monitor by a batch file on Windows 11/10. Follow the below-given steps to do so:-
Step 1. Start with opening a Notepad file and paste the following lines:-
powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)
Step 2. Now, click on the
Step 3. Next, type the
You can now turn off the monitor by double-clicking on this bat file. You can wake up the monitor by pressing any key from the keyboard.