用键盘切换戴尔显示器输入源
到戴尔官网下载驱动 https://www.dell.com/support/home/en-us/drivers/driversdetails?driverid=6wgwy
下载autohotkey https://www.autohotkey.com/
新建脚本
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. ^F11:: Run, "C:\Program Files (x86)\Dell\Dell Display Manager\ddm.exe" /1:SetActiveInput DP1 Return ^F12:: Run, "C:\Program Files (x86)\Dell\Dell Display Manager\ddm.exe" /1:SetActiveInput HDMI Return /斜杠后面的数字是显示器的序号,有的情况下不能成功切换显示器,把后面参数1替换成2就可以了,目前不清楚序号的规律。……