Created
March 16, 2022 13:02
-
-
Save Maxim-Mazurok/e04e0955d79f4924c1b0aa5da78fe6ea to your computer and use it in GitHub Desktop.
Autohotkey script to switch between different WS Display Settings/profiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; I have two monitors: one for games, one for work and I want to switch between them using different profiles in https://wizardsoft.nl/products/wsdisplaysettings | |
; first, set up profiles, and create cmd files (probably optional, but helpful if you want to have shortcuts as well) | |
; | |
; Something like: | |
; cd C:\Users\maxim\Downloads\WsDisplaySettings\portable | |
; start "" "wsds.exe" "play.dis" | |
; | |
; then fix paths and add this script to startup folder | |
; use Ctrl+Alt+P to play, ...+W to work, ...+B to enable both displays | |
; (at least that's my setup, yours might differ, this script helps to click "ok" on dialogue in free version of WS Display Setting software, that's pretty much it) | |
#SingleInstance Force | |
#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. | |
^!p:: | |
Run C:\Windows\System32\cmd.exe /c C:\Users\maxim\Downloads\WsDisplaySettings\portable\play.cmd | |
WinWait, WS Display Settings,,3 | |
SetControlDelay -1 | |
ControlClick, OK, WS Display Settings,,,, NA | |
return | |
^!w:: | |
Run C:\Windows\System32\cmd.exe /c C:\Users\maxim\Downloads\WsDisplaySettings\portable\work.cmd | |
WinWait, WS Display Settings,,3 | |
SetControlDelay -1 | |
ControlClick, OK, WS Display Settings,,,, NA | |
return | |
^!b:: | |
Run C:\Windows\System32\cmd.exe /c C:\Users\maxim\Downloads\WsDisplaySettings\portable\both.cmd | |
WinWait, WS Display Settings,,3 | |
SetControlDelay -1 | |
ControlClick, OK, WS Display Settings,,,, NA | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment