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

How open triggercmd gui with command

General Discussion
3
7
471
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.
  • M
    Mauro
    last edited by Sep 5, 2023, 5:14 PM

    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.

    R S 2 Replies Last reply Sep 5, 2023, 9:25 PM Reply Quote 0
    • R
      Russ @Mauro
      last edited by Sep 5, 2023, 9:25 PM

      @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
      • S
        Steve Lee @Mauro
        last edited by Sep 6, 2023, 2:41 PM

        @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
        • M
          Mauro
          last edited by Sep 6, 2023, 4:14 PM

          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

          S 1 Reply Last reply Sep 7, 2023, 12:21 PM Reply Quote 1
          • S
            Steve Lee @Mauro
            last edited by Sep 7, 2023, 12:21 PM

            @Mauro Nice

            1 Reply Last reply Reply Quote 0
            • M
              Mauro
              last edited by Sep 24, 2023, 5:48 PM

              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
              • M
                Mauro
                last edited by Sep 24, 2023, 5:51 PM

                ; 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