Windows command ideas: apps, system controls, HTTP devices and AI prompts (no helper scripts)
-
Hi everyone,
I have been building a Windows command set in TRIGGERcmd and wanted to share ideas that are just single-line commands - no .bat, .ps1 or external scripts required. Everything below can be pasted directly into commands.json (adjust names and paths to your setup).
- Launch apps and Windows tools
calc - Calculator
notepad - Notepad
code - VS Code
explorer.exe - File Explorer
explorer.exe shell:MyComputerFolder - This PC
explorer.exe shell:Downloads - Downloads folder
taskmgr - Task Manager
cleanmgr - Disk Cleanup
control.exe - Control Panel
ncpa.cpl - Network connections
devmgmt.msc - Device Manager
mmsys.cpl - Sound settings
wt - Windows Terminal
powershell - PowerShell
cmd - CMD
start ms-settings: - Settings app
start ms-settings:network-wifi - Wi-Fi settings
start ms-settings:bluetooth - Bluetooth settings- Close apps without helper scripts
taskkill /IM Code.exe /F
taskkill /IM Obsidian.exe /F
taskkill /IM notepad.exe /F
taskkill /IM CalculatorApp.exe /F
taskkill /IM taskmgr.exe /F
taskkill /IM WindowsTerminal.exe /F
taskkill /IM chrome.exe /F /TDrop /F when you want a graceful close instead of a forced kill. /F does not save unsaved work, so it is worth saying that in the command description.
- Windows controls in one line
Lock screen: rundll32.exe user32.dll,LockWorkStation
Sleep / standby: rundll32.exe powrprof.dll,SetSuspendState 0,1,0
Mute toggle: powershell -NoProfile -Command '$w = New-Object -ComObject WScript.Shell; $w.SendKeys([char]173)'
Volume up / down: same line with [char]175 / [char]176
Play / pause: same line with [char]179
Empty Recycle Bin: powershell -NoProfile -Command 'Clear-RecycleBin -Force -ErrorAction SilentlyContinue'
Close only File Explorer windows (taskbar survives): powershell -NoProfile -Command '(New-Object -ComObject Shell.Application).Windows() | Where-Object { $.FullName -like ''*explorer.exe'' } | ForEach-Object { $.Quit() }'- HTTP devices and local services
If you run a small local HTTP bridge (for example for a TV box), you can expose remote keys with curl. A POST to http://localhost:5555/api/send_key with a JSON body such as key = KEY_POWER is enough.
Ideas: KEY_HOME (close/exit the current app), KEY_BACK, KEY_MUTE, KEY_VOLUME_UP, KEY_VOLUME_DOWN, plus an /api/open_app endpoint for YouTube/Netflix. The same pattern works for Home Assistant, n8n, a Hermes gateway on 127.0.0.1:8642, or any webhook. Only the trigger name leaves the machine; the command and credentials stay local.
- Bridge TRIGGERcmd to an AI coding agent
You can turn a command into a prompt launcher for a local AI agent CLI:
opencode run %*
Set allowParams to true and use %* so multi-word prompts arrive intact. Redirect the output to a file if you want to read the result later. This is a nice way to ask your coding agent to do something from a phone, a voice assistant or an MCP client.
For YouTube searches from voice, another useful command takes the spoken parameter and opens https://www.youtube.com/results?search_query= with the text URL-encoded. With Alexa's conversational skill you can say: ask TC to run buscar no youtube with parameter <your search phrase>. Google Assistant currently only sends on/off for Smart Home devices, so it cannot pass arbitrary text.
- MCP tip
If you use the TRIGGERcmd MCP server, add mcpToolDescription to each command. The local stdio server then creates one tool per command (run_<computer>_<command>) using that description, so the model knows exactly when to use it. Say clearly whether the command accepts parameters.
One gotcha: names are sanitized, so "Volume + TV" and "Volume - TV" both become volume_tv and one tool is lost. Use "Aumentar Volume TV" / "Diminuir Volume TV" instead.
Safety notes
- /F kills apps without saving; use the graceful version for interactive apps.
- Emptying the Recycle Bin is irreversible, so describe it explicitly.
- Only trigger names are stored in the cloud - commands, paths and tokens stay on your computer.
Hope these ideas help. Happy automating!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login