TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. trinib
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by trinib

    • Open youtube link on any browser & play using autohotkey😎
      • Requires Autohotkey (v2.0).
      • Create ahk file, enter code:
      #Requires AutoHotkey v2.0
      
      ;–– Settings ––
      videoURL := "PUT_URL_HERE"
      
      ;–– Locate Browser (Firefox in this examaple) ––
      path64 := A_ProgramFiles . "\Mozilla Firefox\firefox.exe"
      path86 := A_ProgramFiles . " (x86)\Mozilla Firefox\firefox.exe"
      if FileExist(path64)
          firefoxPath := path64
      else if FileExist(path86)
          firefoxPath := path86
      else {
          MsgBox("Could not find firefox.exe.", "Error")
          ExitApp()
      }
      
      ;–– Open in a new tab ––
      Run( Format('{} -new-tab "{}"', firefoxPath, videoURL) )
      
      ;–– Wait for YouTube tab/window ––
      SetTitleMatchMode(2)
      if !WinWait("YouTube", "", 10) {
          MsgBox("YouTube window not found.", "Error")
          ExitApp()
      }
      
      ;–– Maximize & focus ––
      hWnd := WinExist("YouTube")
      WinMaximize(hWnd)
      WinActivate(hWnd)
      WinWaitActive(hWnd, "", 5)
      
      ;–– Let it load & play ––
      Sleep(7000)
      Send("{Space}")
      
      ExitApp
      
      • In triggercmd add new command.
      • Command - location of file(C:\Users\Admin\Desktop\yourfile.ahk)

      LINUX(Requires X11, does not work with Wayland yet) - https://github.com/phil294/AHK_X11
      Code (have not tested):

      #!/usr/bin/env ahk_x11
      #NoEnv
      #SingleInstance force
      
      ;–– Settings ––
      playlistURL = PUT_URL_HERE
      
      ;–– Open in a new tab of your default Firefox ––
      ; The --new-tab flag will reuse an existing window if there is one.
      Run firefox --new-tab "%playlistURL%"
      
      ;–– Wait (up to 10s) for any window with β€œYouTube” in its title ––
      WinWait YouTube,,,10
      if ErrorLevel
      {
          MsgBox YouTube window not found.
          ExitApp
      }
      
      ;–– Maximize & focus ––
      WinMaximize YouTube
      WinActivate YouTube
      WinWaitActive YouTube,,,5
      
      ;–– Give time for the page to load ––
      Sleep 7000
      
      ;–– Toggle play/pause via Space ––
      Send {Space}
      
      ExitApp
      
      • chmod +x yourfile.ahk
      posted in Example Commands
      trinibT
      trinib
    • RE: TRIGGERcmd not starting at boot

      I have this a same issue on windows 10 when no internet at startup. And even with the feature @Russ added - check for internet connection every 10 second is useless for when no internet, service never start properly even after connecting to internet. Will need to force close service and run again with internet on.

      ##### But easy work around using task scheduler.πŸ˜‰πŸ‘‡

      1. Open Task Scheduler
      • Start Menu β†’ Task Scheduler
      1. New Task
      • Action: Create Task…
      • Name: TriggerCMD Agent
      • Security: Run only when user is logged on
      • (Optional: check β€œRun with highest privileges”)
      1. Trigger
      • Click Triggers β†’ New…
      • Begin the task: At log on
      • Settings: Specific user or Any user β†’ OK
      1. Action

      Actions β†’ New…

      • Action: Start a program
      • Program/script:
        C:\Users\Admin\AppData\Local\triggercmdagent\TRIGGERcmdAgent.exe
      • OK
      1. Condition
      • Go to Conditions tab
      • Check Start only if the following network connection is available
      • Select Any connection
      • OK
      1. Finish

      Click OK to save
      (Enter your password if prompted)

      LOVE THIS SOFTWARE . Hope it never dies πŸ™. paying for full features😎

      posted in General Discussion
      trinibT
      trinib