Ctrl+W+1 is this combinations is possible? for wifi toggle

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Nooneelse4ever
Posts: 8
Joined: 02 Jan 2021, 08:39

Ctrl+W+1 is this combinations is possible? for wifi toggle

Post by Nooneelse4ever » 26 May 2022, 06:32

Hi
i'm trying to combine the Ctrl W 1 keys to toggle wifi on/off
Ctrl W 1 = wifi on
Ctrl W 0 = wifi off
is it possble?
i found that the 3 key combo is possble, but it involves alt ctrl and w, but can't find ctrl w (or any other) with 1.
Thanks in advance :D :D :D

User avatar
mikeyww
Posts: 26600
Joined: 09 Sep 2014, 18:38

Re: Ctrl+W+1 is this combinations is possible? for wifi toggle

Post by mikeyww » 26 May 2022, 06:51

An idea is below.

Code: Select all

$^w::Return
^w Up::
Switch A_PriorKey {
 Case "w": Send ^w
 Case "1": Run, ms-settings:network-wifi
}
Return

BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Ctrl+W+1 is this combinations is possible? for wifi toggle

Post by BoBo » 26 May 2022, 06:51

You could go for the F-keys instead of CTRL (combined with W) as those have a numbering already incorporated!? :think:
Ah, OK … (away, looking for F0 :lol: )

Nooneelse4ever
Posts: 8
Joined: 02 Jan 2021, 08:39

Re: Ctrl+W+1 is this combinations is possible? for wifi toggle

Post by Nooneelse4ever » 26 May 2022, 07:00

mikeyww wrote:
26 May 2022, 06:51
An idea is below.

Code: Select all

$^w::Return
^w Up::
Switch A_PriorKey {
 Case "w": Send ^w
 Case "1": Run, ms-settings:network-wifi
}
Return
what key is the $



Nooneelse4ever
Posts: 8
Joined: 02 Jan 2021, 08:39

Re: Ctrl+W+1 is this combinations is possible? for wifi toggle

Post by Nooneelse4ever » 26 May 2022, 07:06

i see
did you find F0,yet?
sure could use one

Post Reply

Return to “Ask for Help (v1)”