WinHttp.WinHttpRequest Hiding the Error Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
hasantr
Posts: 933
Joined: 05 Apr 2016, 14:18
Location: İstanbul

WinHttp.WinHttpRequest Hiding the Error

12 Jun 2022, 04:41

Code: Select all

	whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
	whr.Open("GET", "https://abcdefhslfslfjsfjsfsf.org/")
	whr.Send()

The above code naturally throws an error. But this error stops the process. I want the process to continue. I don't want the error window. I couldn't find which parameter to use. Thank you.
hasantr
Posts: 933
Joined: 05 Apr 2016, 14:18
Location: İstanbul

Re: WinHttp.WinHttpRequest Hiding the Error

12 Jun 2022, 06:53

mikeyww wrote:
12 Jun 2022, 05:18

Code: Select all

Try whr.Send()
Explained: Try
I thought of using try. But in this case it won't work.

Edid:

It works fine when you give a separate try command to each line. Thank you.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, Mateusz53 and 147 guests