Page 1 of 1

Control screen to be turned off with a hotkey

Posted: 17 Apr 2024, 18:15
by Johncoool
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.]

Re: Control screen to be turned off with a hotkey

Posted: 18 Apr 2024, 08:10
by Noitalommi_2
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