run inetcpl.cpl with parameter ",4"? 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

run inetcpl.cpl with parameter ",4"?

17 Mar 2020, 20:10

Hi all,
Could anybody please tell me how to Run "inetcpl.cpl,4"?
User avatar
Alguimist
Posts: 428
Joined: 05 Oct 2015, 16:41
Contact:

Re: run inetcpl.cpl with parameter ",4"?  Topic is solved

18 Mar 2020, 00:02

Code: Select all

Run control inetcpl.cpl`,`,4
Control.exe is a shorthand program that invokes rundll32 Shell32.dll,Control_RunDLL.

It also works this way:

Code: Select all

Run % "rundll32 Shell32.dll,Control_RunDLL inetcpl.cpl,,4"
You can also do this:

Code: Select all

Run rundll32 Shell32.dll`,Control_RunDLL inetcpl.cpl,,, PID
WinWaitActive ahk_pid %PID%
Control, TabRight, 4, SysTabControl321, ahk_pid %PID%
Maybe you want to access a specific dialog from that tab page. For example (untested):

Code: Select all

DllCall("connect.dll\CreateVPNConnection", "Ptr", 0, "UInt", 0, "UInt", 0, "UInt", 0, "Ptr", 0, "WStr", "", "UInt")
joshatt
Posts: 151
Joined: 07 Dec 2014, 08:41

Re: run inetcpl.cpl with parameter ",4"?

18 Mar 2020, 19:24

HotKeyIt wrote:
17 Mar 2020, 22:50

Code: Select all

Run % "control inetcpl.cpl,,4"
Thanks a lot for your help, it works!
joshatt
Posts: 151
Joined: 07 Dec 2014, 08:41

Re: run inetcpl.cpl with parameter ",4"?

18 Mar 2020, 19:32

@Alguimist Thank you so much.
Based on yours I got what I wanted - LAN Settings:

Code: Select all

Run % "rundll32 Shell32.dll,Control_RunDLL inetcpl.cpl,,4",,, PID
WinWaitActive ahk_pid %PID%
send,!l

Alguimist wrote:
18 Mar 2020, 00:02
Maybe you want to access a specific dialog from that tab page. For example (untested):

Code: Select all

DllCall("connect.dll\CreateVPNConnection", "Ptr", 0, "UInt", 0, "UInt", 0, "UInt", 0, "Ptr", 0, "WStr", "", "UInt")
About DllCall I know nothing, your line works, but for inetcpl.cpl, I guess it's not a dll ?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: cjsmile999, doodles333 and 352 guests