API or activate script from web?

Get help with using AutoHotkey and its commands and hotkeys
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.
User avatar
Posts: 1292
Joined: 29 Sep 2013, 22:57
Facebook: socialjsz
Google: +Jszapp
Location: Denmark

Re: API or activate script from web?

16 Apr 2020, 16:14

One way to do it is to use an API like PushBullet https://www.autohotkey.com/boards/viewtopic.php?f=7&t=4842
Also check out:
Courses on AutoHotkey

My Autohotkey Blog
Posts: 5784
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
Posts: 256
Joined: 17 Jun 2014, 02:44
Location: Austria

Re: API or activate script from web?

17 Apr 2020, 00:59


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)

AHK: Ansi, 32-Bit; Win10 (2004, 19041.685) 64 bit, german

Return to “Ask For Help”

Who is online

Users browsing this forum: Bar_Dres, Bing [Bot], Spawnova, XMCQCX and 47 guests