• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  1. Home
  2. Popular
Log in to post
  • All Time
  • Day
  • Week
  • Month
  • All Topics
  • New Topics
  • Watched Topics
  • Unreplied Topics
  • All categories
  • J

    Opening in a particular Window size

    General Discussion
    • • 9 days ago • JRSF Home 3 days ago
    11
    0
    Votes
    11
    Posts
    151
    Views

    R 3 days ago

    @JRSF-Home

    Think script worked pretty well for me. It does something similar to your use-case. It opens a Youtube video in a new Chrome window in a specific location on the screen, with specific dimensions, and presses the Like button.

    It uses a Chrome dev tools console command to find the like button and click it.

    "C:\Program Files\Google\Chrome\Application\chrome.exe" --new-window https://www.youtube.com/watch?v=1I9qC0Zo_PM timeout 4 REM x y width height nircmd win setsize stitle "Allow friends to control Spotify" 200 100 800 1000 nircmd win activate stitle "Allow friends to control Spotify" REM open dev tools nircmd sendkeypress F12 timeout 3 REM type document.querySelector('like-button-view-model button[aria-label*="like"]').click() nircmd sendkeypress d o c u m e n t 0xBE q u e r y Shift+s e l e c t o r Shift+0x39 0xDE l i k e 0xBD b u t t o n 0xBD v i e w 0xBD m o d e l spc b u t t o n 0xDB nircmd sendkeypress a r i a 0xBD l a b e l Shift+0x38 0xBB Shift+0xDE l i k e Shift+0xDE 0xDD 0xDE Shift+0x30 0xBE c l i c k Shift+0x39 Shift+0x30 REM press enter nircmd sendkeypress 0x0D timeout 1 REM close dev tools nircmd sendkeypress F12

    It's a little low-tech because it simulates a lot of key presses. There's probably a better way using puppeteer or selenium but this works if you don't care.

  • S

    MacOS - A JavaScript error occurred in the main process

    General Discussion
    • • 11 days ago • Simon 7 days ago
    8
    0
    Votes
    8
    Posts
    181
    Views

    R 7 days ago

    @Simon thanks again for reporting the error. I'll see if I can reproduce it. It looks like it's in the Home Assistant integration. Sorry about the trouble.

    EDIT: I see from your screenshot that this.computer_name was null for some reason, so I added code to prevent a crash when that happens. I'll produce a new version soon.
    https://github.com/rvmey/TRIGGERcmd-Agent/commit/b54e988e7d251105bc6faa8c3fa6a5240644cbef

    EDIT2: Done - please upgrade to the current version (v1.0.52) to avoid that error in the future.

  • R

    Start and stop crypto mining with NiceHash

    Windows
    • • May 14, 2021, 1:32 AM • Russ 10 days ago
    4
    0
    Votes
    4
    Posts
    526
    Views

    R 10 days ago

    Thanks @Xander .

  • R

    Run the MCP server in Docker

    MCP
    • • 20 days ago • Russ 15 days ago
    3
    0
    Votes
    3
    Posts
    130
    Views

    R 15 days ago

    Thanks @Frederick1337 !

  • H

    Operation on VMware virtual PCs

    General Discussion
    • • 3 days ago • hondaru2004 a day ago
    2
    0
    Votes
    2
    Posts
    29
    Views

    R a day ago

    @hondaru2004, here's a powershell script that will create a new computer in your TRIGGERcmd account. It assumes you installed the agent on the master PC you cloned because it uses the token.tkn file from that install for authentication. It writes the computer ID and computer name to the config files in the user's home directory. I hope this helps.

    # === Configuration === $urlprefix = "https://triggercmd.com" $computername = $env:COMPUTERNAME # Read token from TRIGGERcmd token file $tokenPath = Join-Path $env:USERPROFILE ".TRIGGERcmdData\token.tkn" if (Test-Path $tokenPath) { $token = Get-Content $tokenPath -Raw | ForEach-Object { $_.Trim() } Write-Host "Token loaded from: $tokenPath" -ForegroundColor Green } else { Write-Host "Error: Token file not found at $tokenPath" -ForegroundColor Red Read-Host "Press Enter to exit" exit 1 } # === Perform the POST request === Write-Host "Making API request..." -ForegroundColor Green $headers = @{ "Authorization" = "Bearer $token" "Content-Type" = "application/x-www-form-urlencoded" } $body = "name=$computername" try { $response = Invoke-RestMethod -Uri "$urlprefix/api/computer/save" -Method POST -Headers $headers -Body $body # === Display the full response === Write-Host "`nAPI Response:" -ForegroundColor Yellow $response | ConvertTo-Json -Depth 10 | Write-Host # === Extract and save the ID === $computerId = $response.data.id if ($computerId) { # Save ID to TRIGGERcmd config file $computerIdPath = Join-Path $env:USERPROFILE ".TRIGGERcmdData\computerid.cfg" $computerNamePath = Join-Path $env:USERPROFILE ".TRIGGERcmdData\computername.cfg" # Ensure the directory exists $triggerCmdDir = Split-Path $computerIdPath -Parent if (!(Test-Path $triggerCmdDir)) { New-Item -ItemType Directory -Path $triggerCmdDir -Force | Out-Null } # Save ID to file $computerId | Out-File -FilePath $computerIdPath -Encoding ASCII -NoNewline # Save computer name to file $computername | Out-File -FilePath $computerNamePath -Encoding ASCII -NoNewline Write-Host "`nExtracted ID: $computerId" -ForegroundColor Cyan Write-Host "ID saved to: $computerIdPath" -ForegroundColor Green Write-Host "Computer name saved to: $computerNamePath" -ForegroundColor Green } else { Write-Host "`nError: Could not find ID in response" -ForegroundColor Red } } catch { Write-Host "`nError making API request:" -ForegroundColor Red Write-Host $_.Exception.Message -ForegroundColor Red } Write-Host "`nRequest completed." -ForegroundColor Green

    Run the script with a command like this:
    powershell -ExecutionPolicy Bypass -File .\change_tcmd_id.ps1

    Or, you could just delete the computerid.cfg file and it will prompt you for the token like when you first install the agent.

  • R

    How to run commands from Home Assistant

    Home Assistant
    • • Jun 17, 2018, 7:49 PM • Russ 8 days ago
    13
    0
    Votes
    13
    Posts
    11.4k
    Views

    R 8 days ago

    @rdaraujo, yes, it runs the commands locally without the 1 command per minute limit even if you're not subscribed.

  • F

    TriggerCMDAgent gives Errors when shutting down PC

    General Discussion
    • • Aug 17, 2025, 12:55 PM • Furkan Cevik 12 days ago
    6
    0
    Votes
    6
    Posts
    555
    Views

    R 12 days ago

    @Zaydel-Jiménez, please confirm, you're seeing the "A break point has been reached" error during Windows shutdown? If so, can you get a picture of that error like Furkan did, it might help me. Also, if it happens every time or only once in a while it would also help me to know that.

    I couldn't find the old 1.0.48 version but I don't think it will be any better in terms of that error than the latest version 1.0.50 because it contains the same code I thought would fix it. It's a tricky problem to fix because I can't reproduce it myself.

    FYI, these are the version notes:
    https://www.triggercmd.com/forum/topic/14/triggercmd-agent-versions

  • W

    Java error when installing triggercmd

    Windows
    • • 18 days ago • wandersonjvs 16 days ago
    2
    0
    Votes
    2
    Posts
    106
    Views

    R 16 days ago

    @wandersonjvs, thanks for the screenshots. I suspect you have some antivirus software that's preventing the agent from creating the .TRIGGERcmdData folder under your user's home folder.

    You could try creating it manually, or you could try temporarily disabling your antivirus software.

  • R

    I used the local TRIGGERcmd stdio mcp server with a local LLM with Ollama and Open WebUI

    MCP
    • • 21 days ago • Russ 21 days ago
    1
    0
    Votes
    1
    Posts
    77
    Views

    No one has replied

  • R

    How to use the TRIGGERcmd MCP servers

    MCP
    • • 21 days ago • Russ 21 days ago
    1
    0
    Votes
    1
    Posts
    106
    Views

    No one has replied

  • R

    New Streamable HTTP MCP Server for online LLM AI tools.

    Announcements
    • • 22 days ago • Russ 22 days ago
    1
    0
    Votes
    1
    Posts
    121
    Views

    No one has replied

  • R

    Use Claude Desktop to lookup and play a Youtube video on your Roku

    Windows
    • • 22 days ago • Russ 22 days ago
    1
    0
    Votes
    1
    Posts
    136
    Views

    No one has replied

  • R

    TRIGGERcmd stdio MCP server for LLM AI integration

    Announcements
    • • Sep 13, 2025, 10:31 PM • Russ 28 days ago
    2
    0
    Votes
    2
    Posts
    474
    Views

    R 28 days ago

    Here I'm using the triggercmd MCP server in goose:

    7a3e53e5-185d-41fc-a2dd-13d9e0aa9273-2B04CF8C-7574-4A99-9101-332825A2C4F8.jpeg

  • R

    New MCP server in web UI

    Announcements
    • • 29 days ago • Russ 29 days ago
    1
    0
    Votes
    1
    Posts
    113
    Views

    No one has replied