Send notifications to your phone (android / ios) using autohotkey and HTTP post method
Posted: 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
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)