AutoHotkey simple script doesn't work when compiled

Get help with using AutoHotkey and its commands and hotkeys
Posts: 5
Joined: 18 Apr 2018, 07:20

AutoHotkey simple script doesn't work when compiled

18 Oct 2018, 16:15

Hello guys,
I have a simple script that works perfectly in the interpreted version but it returns an error when ran the compiled version.

The script:

url = %1%
reservation = %2%
status = %3%
uid = %4%
ex_id = %5%

variables = {"id":"%reservation%", "status":"%status%", "uid":"%uid%", "ex_id":"%ex_id%"}

WebRequest := ComObjCreate("WinHttp.WinHttpRequest.5.1")
WebRequest.Open("PUT", url, false)
WebRequest.setRequestHeader("Content-Type", "application/json")

The error is 0x80072726 - An invalid argument was supplied.
Specifically: Send


Error Image:
Any help would be greatly appreciated because I'm stuck here.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], lakozyin, scriptor2016, userXeo1 and 107 guests