Control screen to be turned off with a hotkey

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
Johncoool
Posts: 21
Joined: 18 Jul 2018, 17:15

Control screen to be turned off with a hotkey

Post by Johncoool » 17 Apr 2024, 18:15

There are several tools to turn off the monitor available online but I want to be able to control which one to be turned off when there is more than one screen being connected to the Windows PC.


[Mod edit: Moved topic from 'Scripts and Functions (v2)' - which is meant for publishing working scripts and functions - since this is a help request.]

User avatar
Noitalommi_2
Posts: 260
Joined: 16 Aug 2023, 10:58

Re: Control screen to be turned off with a hotkey

Post by Noitalommi_2 » 18 Apr 2024, 08:10

Hi.

For a dual monitor setup you can use this script, otherwise, I don't know.

Code: Select all

#Requires AutoHotkey 2.0
#SingleInstance

dS := "DisplaySwitch.exe"

F1::Run dS " /internal" ; only primary
F2::Run dS " /external" ; only secondary
F3::Run dS " /extend" ; both - extend desktop
F4::Run dS " /clone" ; both - clone desktop

Post Reply

Return to “Ask for Help (v2)”