Send notifications to your phone (android / ios) using autohotkey and HTTP post method

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
labrint
Posts: 379
Joined: 14 Jun 2017, 05:06
Location: Malta

Send notifications to your phone (android / ios) using autohotkey and HTTP post method

13 Nov 2017, 13:04

Step 1: Sign up with pushover
Step 2: Purchase the app (around 4-5 euro for lifetime of use)
Step 3: Create an AHK file with the following code
Step 4: Obtain your "user key" from https://pushover.net/
Step 5: Replace €€€ in code with the newly obtained user key from step 4
Step 6: Create your token by clicking "Create an Application/API Token" from https://pushover.net/
Step 7: Replace $$$ in code with the newly obtained token from step 6
Step 8: Try replacing the ££££ and #### to create new push messages (link them to some variable from your script)
Step 9: Try changing the sound in the param or adding parameters from https://pushover.net/api

Code: Select all


title := "££££"
message := "####"

param := "token=$$$&user=€€€=" message "&title=" title "&sound=cashregister"
str =https://api.pushover.net/1/messages.json

url_tovar(URL, param) { 
    WebRequest := ComObjCreate("WinHttp.WinHttpRequest.5.1")
    WebRequest.Open("POST", URL)
	WebRequest.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
    WebRequest.Send(param)
}

url_tovar(str, param)

manueljim
Posts: 2
Joined: 27 Nov 2018, 06:49

Re: Send notifications to your phone (android / ios) using autohotkey and HTTP post method

27 Nov 2018, 06:53

Hey I'm following this and not getting any luck, is this method still working?
manueljim
Posts: 2
Joined: 27 Nov 2018, 06:49

Re: Send notifications to your phone (android / ios) using autohotkey and HTTP post method

27 Nov 2018, 07:06

Just FYI there is a

&message

missing after
param := "token=$$$&user=€€€
so it should be

Code: Select all

param := "token=$$$&user=€€€&message=" message "&title=" title "&sound=cashregister"
User avatar
adegard
Posts: 90
Joined: 24 Nov 2017, 05:58
Contact:

Re: Send notifications to your phone (android / ios) using autohotkey and HTTP post method

27 Nov 2018, 15:50

Great ! I will give a look!
[EDIT]: users need to have an app installed to received notifications??
Also for work I use
SMS ...https://github.com/adegard/SMS-Marketing
or Whatsapp...https://www.waboxapp.com/whatsapp_api/php
User avatar
Arkan
Posts: 22
Joined: 27 Nov 2018, 03:12

Re: Send notifications to your phone (android / ios) using autohotkey and HTTP post method

04 Dec 2018, 08:28

adegard wrote:
27 Nov 2018, 15:50
Great ! I will give a look!
[EDIT]: users need to have an app installed to received notifications??
Also for work I use
SMS ...https://github.com/adegard/SMS-Marketing
or Whatsapp...https://www.waboxapp.com/whatsapp_api/php
Nice,
i read about sms-marketing.Good explanations and quite simple.

It will be possible to explain in the same way on the example email marketing by using Atompark sendler?

it would be great to read such information
Last edited by Arkan on 08 Dec 2018, 12:33, edited 1 time in total.
User avatar
adegard
Posts: 90
Joined: 24 Nov 2017, 05:58
Contact:

Re: Send notifications to your phone (android / ios) using autohotkey and HTTP post method

04 Dec 2018, 15:02

It will be possible to explain in the same way on the example email marketing by using Atompark sendler?
Already done by @Ken Soh:
:D

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 78 guests