AutoHotkey simple script doesn't work when compiled

Get help with using AutoHotkey and its commands and hotkeys
needle
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")
WebRequest.Send(variables)
Return

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

WebRequest.Send(variables)

Error Image: https://i.stack.imgur.com/f5Amz.jpg
Any help would be greatly appreciated because I'm stuck here.

Return to “Ask For Help”

Who is online

Users browsing this forum: josewilian, PuzzledGreatly, scriptor2016, ulraf and 196 guests