How open triggercmd gui with command
-
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.
-
@Mauro, that would be tricky to automate. There's no built-in way to do that in the TRIGGERcmd agent.
-
@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.
-
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 -1Macro1:
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 -
@Mauro Nice
-
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

-
; 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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login