Trigger CMD - Run AHK Scripts Using Amazon's Alexa or ...

Discuss other useful utilities, general computing tips & tricks, Internet resources, etc.
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Trigger CMD - Run AHK Scripts Using Amazon's Alexa or ...

Post by BoBo » 02 Jan 2019, 10:08

Trigger CMD is a cloud service that allows you to securely and remotely run commands on your computers.
Your commands could install updates, open your garage, run a script, or anything else you decide.
There are many ways to trigger your commands, including IFTTT, Alexa, Google Home, SmartThings, and Zapier.

https://www.triggercmd.com

Its voice command index is listed in a JSON (text) file so you can edit/swap those using AHK :)

User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Trigger CMD - Run AHK Scripts Using Amazon's Alexa or ...

Post by jeeswg » 02 Jan 2019, 10:52

Hello BoBo! :wave:
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Trigger CMD - Run AHK Scripts Using Amazon's Alexa or ...

Post by BoBo » 02 Jan 2019, 13:40

jeeswg wrote:
02 Jan 2019, 10:52
Hello BoBo! :wave:
Greetz + Happy New Year jeeswg (& friends) :beer: :mrgreen:

SOTE
Posts: 1426
Joined: 15 Jun 2015, 06:21

Re: Trigger CMD - Run AHK Scripts Using Amazon's Alexa or ...

Post by SOTE » 09 Feb 2019, 23:18

Looking at this, you can do much of this with AHK and your e-mail account. Have a computer with AHK check your e-mail, Google Drive, or web server that has a document with command words. The person can send their command words to the document from any remote location, and their computer with AHK would check this document periodically. Then based on the command words in the document, execute various AHK scripts.

Of course the downside is that AutoHotkey is Windows and ReactOS (which is still now ready for prime time yet) only for now.

garry
Posts: 3720
Joined: 22 Dec 2013, 12:50

Re: Trigger CMD - Run AHK Scripts Using Amazon's Alexa or ...

Post by garry » 10 Feb 2019, 16:41

I 'like' these 'smart' things ( IoT )

( first answer to 5G )
How does 5G make everyday life easier for us?
5G will take the Internet of Things one step further.
Mobile phones that ask the fridge at home if there is enough beer left.

With the Internet of Things, cyber blackmailers could lock out owners from their homes.

BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Trigger CMD - Run AHK Scripts Using Amazon's Alexa or ...

Post by BoBo » 12 Mar 2019, 07:39

SOTE wrote:
09 Feb 2019, 23:18
Looking at this, you can do much of this with AHK and your e-mail account. Have a computer with AHK check your e-mail, Google Drive, or web server that has a document with command words. The person can send their command words to the document from any remote location, and their computer with AHK would check this document periodically. Then based on the command words in the document, execute various AHK scripts.

Of course the downside is that AutoHotkey is Windows and ReactOS (which is still now ready for prime time yet) only for now.
My focus was to trigger the script using my voice via an Amazon Echo Dot II. That works great. Haven't had a try to create/modify a document hosted at Google Drive, which I think would need some extra effort. Feel free to prove me wrong ;)

For those who want to create an AHK option without using a third party app the following info might come handy (but is probably outdated?).
http://www.wolter.biz/2017/12/alexa-programming-languages-and-tools/
Good luck :)



markwood5637
Posts: 2
Joined: 23 Dec 2022, 08:30

Re: Trigger CMD - Run AHK Scripts Using Amazon's Alexa or ...

Post by markwood5637 » 24 Feb 2023, 05:19

"It is possible to run AutoHotkey (AHK) scripts using Amazon's Alexa through the use of third-party applications and services?"

Here's one approach to accomplishing this:

Create an Alexa Skill: Create a new Alexa Skill using the Alexa Skills Kit (ASK) developer console. This will involve creating a new skill with a custom invocation name and defining the intents and utterances that users will use to trigger the skill.

Create a Lambda Function: Create a new AWS Lambda function that will handle the requests from the Alexa Skill. This function should be written in a programming language supported by AWS Lambda, such as Node.js, Python, or Java.

Install the AutoHotkey Compiler: Install the AutoHotkey compiler on the AWS Lambda function to enable the script execution. You can either package the AHK script within the Lambda function or reference it from a remote location.

Write the Code: Write the code that will handle the incoming requests from Alexa, parse the intent and slots, and execute the AHK script based on the user's request.

Test and Deploy: Test the skill thoroughly to ensure it is functioning correctly. Once it is working as expected, deploy the skill to the Alexa platform.

Post Reply

Return to “Other Utilities & Resources”