TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How open triggercmd gui with command

    General Discussion
    3
    7
    422
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • MauroM
      Mauro
      last edited by

      I would like to know how it is possible to open the panel (gui) of Triggercmd with command or macro, because I can't find anything about it. What I want is to automate this functionality with my voice, without having to click on the sidebar to open it.

      RussR Steve LeeS 2 Replies Last reply Reply Quote 0
      • RussR
        Russ @Mauro
        last edited by

        @Mauro, that would be tricky to automate. There's no built-in way to do that in the TRIGGERcmd agent.

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        • Steve LeeS
          Steve Lee @Mauro
          last edited by

          @Mauro There used to be a way to access non hidden tray icon menus with autohotkey but looking now it might have been broken in Windows 10 or 11. The only other option I can think of is using UIA but that's really low level coding.

          1 Reply Last reply Reply Quote 0
          • MauroM
            Mauro
            last edited by

            I found a solution, just select the option for the triggercmd icon to be on the taskbar and trigger the following macro:

            #NoEnv
            SetWorkingDir %A_ScriptDir%
            CoordMode, Mouse, Window
            SendMode Input
            #SingleInstance Force
            SetTitleMatchMode 2
            #WinActivateForce
            SetControlDelay 1
            SetWinDelay 0
            SetKeyDelay -1
            SetMouseDelay -1
            SetBatchLines -1

            Macro1:
            WinActivate, ahk_class Shell_TrayWnd
            Sleep, 50
            Click, 2384, 23 Right, Down
            Sleep, 50
            Click, 2384, 1063 Right, Up
            Sleep, 50
            Click, 2418, 1030 Left, Down
            Sleep, 50
            Click, 2418, 1030 Left, Up

            ; Defina o intervalo entre as execuções em milissegundos (por exemplo, 10 segundos):
            Sleep, 50

            ; Sair do script após a execução do macro
            ExitApp

            Steve LeeS 1 Reply Last reply Reply Quote 1
            • Steve LeeS
              Steve Lee @Mauro
              last edited by

              @Mauro Nice

              1 Reply Last reply Reply Quote 0
              • MauroM
                Mauro
                last edited by

                I have a new version, using a try icon. U can open triggercmd if u make the program the first icon in tray icon, is fast and simple 🙂

                1 Reply Last reply Reply Quote 0
                • MauroM
                  Mauro
                  last edited by

                  ; Defina a cor do pixel que você deseja localizar (no formato RGB hexadecimal)
                  CorPixelDesejado := 0xd5492a ; Por exemplo, vermelho

                  ; Use a função PixelSearch para localizar o pixel
                  PixelSearch, EncontradoX, EncontradoY, 0, 0, A_ScreenWidth, A_ScreenHeight, %CorPixelDesejado%

                  ; Verifique se o pixel foi encontrado
                  If ErrorLevel = 0
                  {
                  ; Movimente o mouse para as coordenadas encontradas (X, Y)
                  MouseMove, %EncontradoX%, %EncontradoY%

                  ; Clique no pixel
                  Click
                  

                  }

                  ; Sair do script após a execução do macro
                  ExitApp

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post