Using python, a GUI window can be initialized with following command.
Code: Select all
import requests
import json
r = requests.post('http://localhost:8765', data=json.dumps({'action': 'guiAddCards', 'version': 5}))
print(r.text)
This is what I've tried, but failed.
Please share me what is the right way.
Code: Select all
#include c:\Users\123\Desktop\JSON.ahk
JSON := new JSON
oHttp := ComObjCreate("Msxml2.XMLHTTP")
Site:="http://localhost:8765/"
oHttp.open("Post",Site,0)
str:=JSON.Dump([{"action":"guiAddCards"},{"version":2}])
oHttp.send(str)