Skip to content

Latest commit

 

History

History
115 lines (81 loc) · 1.78 KB

File metadata and controls

115 lines (81 loc) · 1.78 KB

⚡ Quick Start (5 minutes)

Prerequisites

  • Windows 10/11 with 2+ monitors
  • Go 1.22+ installed
  • Administrator rights

Steps

1️⃣ Navigate to the folder

cd c:\Develop\Go\fsm

2️⃣ Download MultiMonitorTool (if you don't have it)

get-mmt.bat

Or download manually from: https://www.nirsoft.net/utils/multi_monitor_tool.html

3️⃣ Build the utility

build.bat

Or manually:

go build -ldflags="-H windowsgui" -o fsm.exe

4️⃣ Run as administrator

.\run-admin.ps1

Or via CMD as admin:

fsm.exe

✅ Done!

The utility now:

  • ✓ Sits in the system tray
  • ✓ Automatically turns off monitors in fullscreen
  • ✓ Writes logs to app.log
  • ✓ Responds to commands from the tray

🧪 Testing

  1. Open a game or application in full screen on the main monitor
  2. Make sure other monitors are off (black screen)
  3. Press Alt+Tab or close the game
  4. Make sure the monitors are on

📝 Logs

# View logs
debug.bat --log

# Or manually
type app.log

⚙️ Configuration

Edit config.json:

{
  "pollIntervalMs": 300,           // Check frequency
  "fullscreenTolerancePx": 5,      // Tolerance for borderless windows
  "mmtPath": "MultiMonitorTool.exe",
  "logLevel": "info",
  "ignoreProcesses": [
    "Discord.exe",
    "Slack.exe"
  ]
}

Then restart the utility.

🎮 Tray Menu

Option Action
▶ Resume Enable/Disable automation
❌ Exit Exit (restores config)

🆘 Problems?

# Test MultiMonitorTool
debug.bat --test-mmt

# View config
debug.bat --config

# Clear logs
debug.bat --clean

For more help, see INSTALL.md and README.md


Ready? Run: .\run-admin.ps1