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
      4
      0
      Votes
      4
      Posts
      6
      Views

      RussR

      @Smart-Communities, I think you need to edit your short bookmark and re-select your reboot command.

      I suspect maybe you renamed your computer?

      I just did that - I added a space between New and Laptop. It made my short bookmark red because it no longer matched the computer name:
      fa911404-13be-4763-99d2-901b0e7f6e07-image.png

      Then I fixed it by editing my short bookmark and re-selecting my reboot command:
      e0fcb2ed-9847-4dfa-b148-03071cb30308-image.png

      About your idea to have the ability to view all standard and short bookmarks - it's not possible to show the standard bookmarks because they're not stored in the database. The standard bookmarks use a JWT, which is what makes them so long.

    • JRSF HomeJ

      Opening in a particular Window size

      General Discussion
      • • • JRSF Home
      13
      0
      Votes
      13
      Posts
      439
      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