DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: SOLVED: Quick toggle some monitors  (Read 12,926 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
SOLVED: Quick toggle some monitors
« on: June 17, 2020, 01:11 PM »
I have a 4-monitor pc setup.  Occasionally when I watch a full screen movie or play a game, I'd like to turn off all but one of my monitors.
I'd love a little system tray utility with a hotkey (and right-click menu?) that could toggle a configurable set of my monitors on and off.
« Last Edit: June 17, 2020, 08:29 PM by mouser »

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 11,205
    • Participated in NANY Challenge Fourteen Times
    • Coding Snacks
    • Writer
    • Hardware Hacker
Re: SOLVED: Quick toggle some monitors
« Reply #1 on: June 17, 2020, 02:16 PM »
You mean hardware toggle?  Or just blank out.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: SOLVED: Quick toggle some monitors
« Reply #2 on: June 17, 2020, 02:54 PM »
This is actually pretty tricky programmatically.  I'd recommend using Nir Sofer's MultiMonitorTool program.  It's a GUI program, but fully commandline controllable.  You could easily create a toggle shortcut like this:

Code
c:\path\to\MultiMonitorTool.exe /SwitchOffOn 2 3 4

Of course, run the tool first to get the proper monitor numbers.
« Last Edit: June 17, 2020, 03:41 PM by skwire »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: SOLVED: Quick toggle some monitors
« Reply #3 on: June 17, 2020, 06:01 PM »
Thanks skwire, looks like MuliMonitorTool will do exactly what I want  :up:
I will report.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: SOLVED: Quick toggle some monitors
« Reply #4 on: June 17, 2020, 07:36 PM »
Thanks skwire, looks like MuliMonitorTool will do exactly what I want  :up:
I will report.

Right on.  I'm sure you'll find out soon enough but, to work properly, the monitors would have to be DDC/CI capable.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: SOLVED: Quick toggle some monitors
« Reply #5 on: June 17, 2020, 08:29 PM »
Got it working.  :up:
Problem solved.

The GUI was useful as the monitor #s were not what one would expect.
The SwitchOnOff commandline option worked imperfectly to toggle the monitors (one monitor was not toggling back on properly), so I used 2 hotkeys in AHK, one to turn the monitors off, and another to turn them back on.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: SOLVED: Quick toggle some monitors
« Reply #6 on: June 17, 2020, 08:41 PM »
Got it working.  :up:
Problem solved.

The GUI was useful as the monitor #s were not what one would expect.
The SwitchOnOff commandline option worked imperfectly to toggle the monitors (one monitor was not toggling back on properly), so I used 2 hotkeys in AHK, one to turn the monitors off, and another to turn them back on.

Right on.  I'll move this thread.

Original address: https://www.donationcoder.com/forum/index.php?topic=50027.0