API or activate script from web?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
markman641
Posts: 1
Joined: 16 Apr 2020, 15:41

API or activate script from web?

16 Apr 2020, 15:49

Is it possible to remotely trigger an AHK script? I have a script on my website that I would like to have it make a call to my PC to run an AHK script.
I was thinking if AutoHotKey had some sort of web service, I could make a web call to my computers IP address to call the web service running in my AHK script to perform an action.
gregster
Posts: 9085
Joined: 30 Sep 2013, 06:48

Re: API or activate script from web?

16 Apr 2020, 22:19

Another option: Create a bot via the Telegram Bot API.
Then run a script on your computer that only reacts to messages from your own chat ID (or multiple known IDs, if you want to include your grandparents' phones, for example).
You can even create buttons or custom keyboards for your bot... or send images to/from your computer, or whatever.

Example: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=42031#p192355
User avatar
Jovannb
Posts: 268
Joined: 17 Jun 2014, 02:44
Location: Austria

Re: API or activate script from web?

17 Apr 2020, 00:59

Hi

simple, slow and reliable:

a) your webpage sends Email to Postbox (Pop), driven by Webbutton-click or whatever

b) ahk fetches that Pop-Email (eg. with curl.exe)

J.B.
AHK: 1.1.37.01 Ansi, 32-Bit; Win10 22H2 64 bit, german

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Rohwedder and 126 guests