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

    Posts made by aaaaa12345

    • RE: Type out your parameters

      @it_ibsolution.de
      Du kannst dein script ja so auslegen, das es eine statische Anzahl an Parametern gibt, wobei diese, bei "Nichtverwendung" gegebenenfalls mit einem Platzhalter/dummy bestückt werden.
      Bei der anschließenden Auswertung im Script wären diese dann als "ungenutzt" markierten Parameter schlicht zu ignorieren. Oder ...
      du flagst jeden Parameter explizit wie (AFAIK) unter Linux üblich mit einem Bezeichner:
      "--drive C:" "--command defrag" "-time 20220916180000"
      ...und wertest dementsprechend aus.

      AutoHotkey ist eine (open source) Scriptsprache, welche über die von Powershell bereitgestellten systemnahen Funktionen auch events auf application/desktop level steuern kann. Mehr dazu gibt es in den einschlägigen Fachzeitschriften wie der c´t, oder unter autohotkey.com
      Natürlich lässt sich auch PowerShell damit kombinieren.

      HTH

      posted in Windows
      A
      aaaaa12345
    • RE: Type out your parameters

      @it_ibsolution.de
      Wenn du die Frage im Autohotkey-Forum noch mal stellst, sollte das recht einfach zu lösen sein.

      voice: "Alexa, make a backup of S A P thirty"
      command: "Autohotkey.exe myScript.ahk sap p 30"

      posted in Windows
      A
      aaaaa12345
    • RE: Can't run my OneDrive, GoogleDrive Desktop Folders

      @Oscar-Daniel-Díaz-Carmona
      well, at least you should provide a Google translation of the error message (simply c&p it to its service) unless you want to limit your supporter to Hispanics...
      JM2€ents

      posted in General Discussion
      A
      aaaaa12345
    • RE: Respaldo?

      @Oscar-Mro
      Under Windows: open TCMD's "Text Command Editor" with a right-click on its notification bar icon. It is displaying the path/location of the "command.json" file that contains your TCMD configuration. Save a copy of that file. Or cut&paste the editor's content into a text file of the same name.

      Google translation:
      En Windows: abra el "Editor de comandos de texto" de TCMD haciendo clic con el botón derecho en el icono de la barra de notificaciones. Muestra la ruta/ubicación del archivo "command.json" que contiene su configuración de TCMD. Guarde una copia de ese archivo. O corta y pega el contenido del editor en un archivo de texto con el mismo nombre.

      HTH

      posted in Example Commands
      A
      aaaaa12345
    • RE: Posted URL not working (with an Apple iPad)

      @Russ
      Thank you so much! You made my day <firework emoticon>

      posted in General Discussion
      A
      aaaaa12345
    • RE: Change the language

      @Russ
      we've managed to configure the language setting on the fly using an ini-file located at the application's root path. If that file was existing the app has taken its Gui language settings from the file instead of using the English default*.
      You could offer your members to contribute their own language files within the forum. A first step would be to provide a template. That way you wouldn't have to do the translation on your own.

      [current commands]
      foreground=Vordergrund
      

      *that way my colleague created his own German (well, Austrian slang) X-mas release 🎅

      PS. I wouldn't connect the app to the system language setting bc a system's 1:1 translations often end up lousy, ie ...

      command (engl.) = Kommando/Befehl/Aufforderung/...
      ...while you would say "Ausführen:" (=execute)

      posted in Windows
      A
      aaaaa12345
    • Posted URL not working (with an Apple iPad)

      Hi,
      I guess the restriction is with this forum software (or the iOS Chrome browser?)

      Once I post a 'commented' link like this:
      vmAPIRun() - The Announcer (Alexa/Google Ass. TTS)
      …it won't work/resolve if clicked on an iPad.

      Unfortunately it's not possible to fix this link if you've realized it too late, bc the forum restricts the editing of your own posting/thread (even if no one has replied meanwhile) to a few minutes after you saved it for the first time. 🙄

      Well, it might be possible to use a raw 'uncommented' link instead?

      Let's try: https://www.autohotkey.com/boards/viewtopic.php?f=6&t=106441

      Nope, also not working. At least someone is able to c&p it 👩‍💻

      Question: is there a fix for this iPad vs forum-link behavior?

      Workaround: if you're tabbing the link and select "open in a new Tab" the link will get executed correctly. 👍

      HTH

      posted in General Discussion
      A
      aaaaa12345
    • RE: Waking up Windows 10 desktop with Alexa

      @gingerslayer113 (or whom it may concern)
      I've used automagic4android(.com) bc of its scripting ability, so this looked quite interesting to me:
      Google Home WOL Configuration -
      https://www.youtube.com/watch?v=iD6lCh7Uhq8

      Similar to a4a looks MacroDroid, and, bc also mentioned within the above video: Tasker

      Good luck 👍

      posted in Windows
      A
      aaaaa12345
    • RE: Change voicemeeter banana Hardware Output

      @Gustavo-Yrepá

      Thx for sharing this! Interestingly it's also from Nirsoft 🙂
      https://www.nirsoft.net/utils/sound_volume_view.html

      posted in General Discussion
      A
      aaaaa12345
    • RE: sendKey - using command line parameters

      Yes indeed, if you're using a delay-flag of '0' ie "trigger:0" (that will multiply 0 with 1000ms = 0s) will overwrite the default delay of '1' second between "keypresses".
      Therefore this command (line)...

      autohotkey.exe sendKey().ahk trigger:0 c(67):0 M:0 c(68)

      ...will send the string 'trigger' followed (without delay) by ASCII-char 67, the string 'M', and (without delay) ASCII-char 68.

      The above script (but with that added ASCII-conversion) is available here ...
      https://www.autohotkey.com/boards/viewtopic.php?f=7&t=88308&p=475550#p475550

      posted in Windows
      A
      aaaaa12345
    • sendKey - using command line parameters

      Within [this] thread, several options have been shown sending a single key/multiple keys to your PC using TCMD

      I've written a tiny [AutoHotkey] script that can be executed using a TCMD command (line), where its parameters are representing the keys that should be sent to the PC.

      Additionally, it allows specifying a delay (sec) after a key has been "pressed"/sent.

      So, the following TMCD command line...

      autohotkey.exe script.ahk {F2}:1.5 {F3}:5 {F4}:3 "Hello World" {F5}

      https://www.autohotkey.com/docs/Scripts.htm#cmd

      ...will execute 'script.ahk' on the PC that will process the space-separated parameters like '{F2}:1.5' ... into keypresses ...in its consecutive order.

      script.ahk

      #SingleInstance, Force
      
      Loop % A_Args.Count()
         {  param := StrSplit(A_Args[A_Index],":")
            p := InStr(A_Args[A_Index],":") ? param.1 : A_Args[A_Index]
            d := InStr(A_Args[A_Index],":") ? param.2 : 1
            Send  % p
            Sleep % d*1000
         }
      

      In my test case, this would trigger the following hotkeys, set up in an already running script on my PC (myHotkeys.ahk), that are persistently waiting to be triggered via the key presses executed via TCMD.

      myHotkeys.ahk

      F2::MsgBox % A_Now
      F3::SoundBeep
      F4::Run % "notepad.exe"
      F5::FileAppend,% A_Now, my.log
      

      What means...
      ...once {F2} has been sent, a message box will be opened showing a timestamp : sleeping for 1.5 sec

      ...once {F3} has been sent, a soundbeep occurs : sleeping for 5 sec

      ... once {F4} has been sent, notepad opens : sleeping for 3 sec

      The string 'Hello World' is sent to the app that has the focus : default delay of 1 sec (bc it wasn't explicitly set)

      ... finally {F5} has been sent, timestamp will be written to 'my.log' ... *

      As you can see, besides triggering AHK Hotkeys you can send generic text strings too (and/or call functions() etc.)

      BTw, ATM - no specific error handling!
      If, for whatever reason you think it's necessary to "compile" an AutoHotkey script you can do that as well. Help yourself:
      https://www.autohotkey.com/docs/Scripts.htm#ahk2exe

      Disclaimer: you're using the script(s) at your own risk. 👮

      * you've to set up TC accordingly to be able to handle 'background'-commands/parameters!

      posted in Windows
      A
      aaaaa12345
    • RE: Press the Down Arrow key (or any other key)

      @marcos-ibarra
      I'm not into AU3 that much (while knowing AHK better), what about triggering OBS's Control(s) directly, instead of Send(ing) a key in a less reliable way?

      https://www.autoitscript.com/autoit3/docs/functions/ControlCommand.htm

      That way the window wouldn't even have to be active, only existing!

      posted in Windows
      A
      aaaaa12345
    • CAST your text/music/videos/...

      "CAST is a Windows command line utility which lets you send text (as spoken words), music, or videos to your Google Assistant (Home, Mini, or Max), a Chromecast enabled device (like your TV), or PC Speakers.

      You are welcome to download and use it for free on as many computers as you would like."

      Source: https://rlatour.com/cast/

      posted in Windows
      A
      aaaaa12345
    • RE: turn off and turn on

      @aaaaa12345

      Google:
      https://www.youtube.com/watch?v=iD6lCh7Uhq8

      PS. "Automagic for Android" is still available via its website @ automagic4android.com

      Alexa:
      https://www.youtube.com/watch?v=MDRnVnWt11Y
      Free for switching ON! For switching OFF (bc the PC is still running) you can use TriggerCMD the way it is.

      posted in Windows
      A
      aaaaa12345
    • RE: SendResult.bat - command_id

      ...but unfortunately, Amazon has set up restrictions:

      "Response length – The combined total time for the entire audio response generated from the components cannot be more than 240 seconds."

      BUT...

      "Our API throttling limits will allow up to 30 calls within a 60 second window…anything above that will block subsequent requests for the next 15 minutes."

      So, no creating a music box isn't really doable - a text reader/TTS no problem!

      posted in General Discussion
      A
      aaaaa12345
    • RE: SendResult.bat - command_id

      OK, Voice Monkey offers to trigger an instantaneously Echo Dot announcement via an Alexa Routine (I'd guess that's what TC is doing as well, acting as a switch/doorbell?). I'm using that to hand over whatever processing outcome (as text) to a specific VM monkey that will announce it ad-hoc (without needing to be requested first). VM's API is using a simple GET statement.
      "The Announcer"-script is hosted here at the AutoHotkey forum.

      VM's API offers a bunch of options/parameters like audio/video/img*/url/... I've tried it successfully with DropBox/...

      * so you can play a song, while pushing its cover to your Echo Show (or FireTablet in "Show"-mode).

      Have phun 🙂

      posted in General Discussion
      A
      aaaaa12345
    • RE: SendResult.bat - command_id

      @Russ
      Thx, got it. 👍

      posted in General Discussion
      A
      aaaaa12345