Skip to content

Repository files navigation

Monitor-off-script

A collection of utility scripts to turn off computer monitors on Windows, featuring a custom delay to prevent immediate wake-up from keyboard/mouse release events.

Features

  • AutoHotkey (AHK) Scripts: Bind to the F24 key to easily turn off the monitor from any application.
    • Supports both AHK v1 (monitor_off_v1.ahk) and AHK v2 (monitor_off_v2.ahk).
  • Native PowerShell/Batch Scripts: Turn off the monitor without installing any third-party tools by simply running monitor_off.bat.

Scripts

1. AutoHotkey Scripts (Recommended for Hotkeys)

By default, the script binds to the F24 key. When triggered, it waits for 500ms to allow key release, and then sends the WM_SYSCOMMAND message to turn off the display.

2. Native Scripts (No Installation Required)

Double-click monitor_off.bat to execute the PowerShell script which invokes the SendMessage Win32 API natively.

Credits & Acknowledgments

Special thanks to DaneBlood

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages