fetch IE proxy port number? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
joshatt
Posts: 151
Joined: 07 Dec 2014, 08:41

fetch IE proxy port number?

14 Jan 2019, 19:47

Hi,

I know IE proxy is automatically used on other connections. But I still want to fetch the current proxy setting, (so that: while other softwares go through PAC with the current proxy, this specific ahk script will go through "global" current proxy) it's always 127.0.0.1, so I guess I want the port number.

I checked my registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\
did not find any "proxy" or my current proxy port "7080" or "7081".

Any idea?

Appreciate any help.
User avatar
Xeo786
Posts: 760
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

Re: fetch IE proxy port number?  Topic is solved

15 Jan 2019, 01:52

you use AHK function regread

Code: Select all

; RegRead, OutputVar, KeyName [, ValueName]
RegRead, OutputVar1, HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings, ProxyServer,
RegRead, OutputVar2, HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings, Proxyenable,
MsgBox, Proxy Server: %OutputVar1%  | Status: %OutputVar2%
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory
joshatt
Posts: 151
Joined: 07 Dec 2014, 08:41

Re: fetch IE proxy port number?

15 Jan 2019, 03:12

Xeo786 wrote:
15 Jan 2019, 01:52
you use AHK function regread

Code: Select all

; RegRead, OutputVar, KeyName [, ValueName]
RegRead, OutputVar1, HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings, ProxyServer,
RegRead, OutputVar2, HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings, Proxyenable,
MsgBox, Proxy Server: %OutputVar1%  | Status: %OutputVar2%
Works like a charm. Thanks a lot!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: OrangeCat and 285 guests