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
    • S

      Short Bookmark says device is offline but shows online in main PC list,

      General Discussion
      • • • Smart Communities
      7
      0
      Votes
      7
      Posts
      103
      Views

      S

      @Russ because I never clicked that and had no idea what it does. 😆

      It worked. Now it shows the full name of the PC and the indicator is black.

      I appreciate the help Russ. Have a good weekend and a happy Thanksgiving.

    • J

      Batch file run by trigger behaves differently than run locally?

      Windows
      • • • JoshuaJSlone
      2
      0
      Votes
      2
      Posts
      6
      Views

      RussR

      @JoshuaJSlone, that's a known issue with the windows timeout command. It doesn't work in contexts that don't have an interactive terminal, like when running it via TRIGGERcmd. Here's one method that does work:

      start /wait timeout 3

      I've also added delays with the ping command like this:

      ping 127.0.0.1 -n 2
    • J

      How do I Cancel My Subscription

      General Discussion
      • • • jett
      2
      0
      Votes
      2
      Posts
      20
      Views

      RussR

      @jett, you'll need to cancel your subscription from your Paypal account.

    • JRSF HomeJ

      Opening in a particular Window size

      General Discussion
      • • • JRSF Home
      13
      0
      Votes
      13
      Posts
      612
      Views

      RussR

      @JRSF-Home, sorry, I forgot (again) that timeout command doesn't wait if the script is running in a context that doesn't have a console, like when the TRIGGERcmd agent runs it. It just moves on immediately.

      This chatgpt session explains it: https://chatgpt.com/share/691cf13c-2f64-8004-8b12-78dd516285a9

      You can see here that another user had the same problem.

      My suggestion is to use the ping command like this:

      ping 127.0.0.1 -n 3

      Adjust that 3 number depending on how long you want to wait.

      Here's my improved script that uses ping to wait, and it uses CTRL-SHIFT-J to go directly to the Console tab:

      "C:\Program Files\Google\Chrome\Application\chrome.exe" --new-window https://www.youtube.com/watch?v=1I9qC0Zo_PM ping 127.0.0.1 -n 5 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 to the Console tab nircmd sendkeypress ctrl+shift+j ping 127.0.0.1 -n 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 ping 127.0.0.1 -n 2 REM close dev tools nircmd sendkeypress F12

      Here's a video of it working on my laptop: https://youtu.be/p-uJ8j1__zw