• What is the magic inherent in the F4 keyboard EXIT key?

    From Michael@21:1/5 to All on Wed Mar 22 20:27:46 2023
    XPost: alt.comp.os.windows-11, alt.comp.hardware

    I have an openvpn configuration directory containing a few config files. 100.1.2.1.ovpn
    100.1.2.2.ovpn
    100.1.2.3.ovpn

    When I doubleclick on that 100.1.2.3.ovpn text file, I get connected to the specified VPN server (here exemplified by 100.1.2.3) which works real nice.

    Doubleclicking runs the openvpn client due to Windows file associations.
    The resulting command window description says something like this
    (look at the F4 entry).

    [C:\openvpn\config\100.1.2.3.ovpn OpenVPN 2.5.8 F4:EXIT F1:USR1 F3:HUP]

    All that works real nice.

    But if I exit that VPN session any other way than to hit the F4 keyboard
    key, it sometimes (but not always) hangs up and gets stuck in a sad state.

    What's the magic of the F4 Windows keyboard key?

    The reason I care is it's hard to find that F4 key sometimes and I'd rather find an alternative way of killing the openvpn session without having to
    hunt and peck for the specific F4 key (which is harder to hit on laptops).
    --
    [I filter out Google Groups posts so if I don't reply, that may be why.]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stan Brown@21:1/5 to Michael on Wed Mar 22 20:03:15 2023
    On Wed, 22 Mar 2023 20:27:46 -0600, Michael wrote:
    The resulting command window description says something like this
    (look at the F4 entry).

    [C:\openvpn\config\100.1.2.3.ovpn OpenVPN 2.5.8 F4:EXIT F1:USR1 F3:HUP]

    All that works real nice.

    But if I exit that VPN session any other way than to hit the F4 keyboard
    key, it sometimes (but not always) hangs up and gets stuck in a sad state.

    Patient: "Doctor, Doctor, it hurts when I do this!"

    Doctor: "Well, don't!"

    What's the magic of the F4 Windows keyboard key?

    There is none. It's not a standard Windows shortcut, unlike Alt+F4
    and (to a lesser extent) Ctrl+F4. Maybe there's an OpenVPN forum
    where you can get answers?


    --
    Stan Brown, Tehachapi, California, USA https://BrownMath.com/
    Shikata ga nai...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to Paul on Wed Mar 22 22:12:59 2023
    XPost: alt.comp.os.windows-11, alt.comp.hardware

    On Wed, 22 Mar 2023 23:18:46 -0400, Paul wrote:

    Thus, we can conclude from this, that the program developer
    sees that Windows does that with alt-F4, so the developer
    decides that a "naked F4" will be the exit key.

    That is the only significance. Imitation.

    Do you think I can map the F4 key (which I don't use for anything else) to
    a key that I can more easily use (especially on the smaller laptops and especially at night because my small laptop has no lights in the keys)?

    I've tried other keys, like F3 and control+c which work to some extent but which often hang up. I saw people asked the same question on the openvpn
    forum and the developers were snotty (imho) telling them what's the problem with using the F4 key. Get over it.

    Otherwise, I guess I just have to get over it but at night on an unlit
    keyboard (and especially laptops which require fn first) it's harder.
    --
    [I filter out Google Groups posts so if I don't reply, that may be why.]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to Michael on Wed Mar 22 23:18:46 2023
    XPost: alt.comp.os.windows-11, alt.comp.hardware

    On 3/22/2023 10:27 PM, Michael wrote:
    I have an openvpn configuration directory containing a few config files. 100.1.2.1.ovpn
    100.1.2.2.ovpn
    100.1.2.3.ovpn

    When I doubleclick on that 100.1.2.3.ovpn text file, I get connected to the specified VPN server (here exemplified by 100.1.2.3) which works real nice.

    Doubleclicking runs the openvpn client due to Windows file associations.
    The resulting command window description says something like this
    (look at the F4 entry).

    [C:\openvpn\config\100.1.2.3.ovpn OpenVPN 2.5.8 F4:EXIT F1:USR1 F3:HUP]

    All that works real nice.

    But if I exit that VPN session any other way than to hit the F4 keyboard
    key, it sometimes (but not always) hangs up and gets stuck in a sad state.

    What's the magic of the F4 Windows keyboard key?

    The reason I care is it's hard to find that F4 key sometimes and I'd rather find an alternative way of killing the openvpn session without having to
    hunt and peck for the specific F4 key (which is harder to hit on laptops).


    Keyboards mechanically, don't have a particular bias.

    Most of the keys are in a matrix. 7x17 perhaps. 24 wires.
    One direction are senders. The other direction are receivers.
    That's enough for 119 keys.

    In addition, the modifier keys are "private" and each gets
    its own signal. It is not on the matrix. Ctrl, alt, shift,
    might get separate wires. (These are things I learned when
    I built my own keyboard, in the 80's.)

    When a matrix contact is closed, the keyboard waits three
    scan cycles, before declaring "he really did press the key".
    This is the debounce interval, that takes the springy bounce
    in the electrical contacts into account.

    If the matrix pair is depressed for too long, it can cause
    the auto-repeat sequence.

    *******

    Windows, uses alt-F4.

    If you click within a program window, and press alt-F4,
    that causes an exit from the program.

    If you click on the desktop surface, and press alt-F4,
    the shutdown menu is presented. This is real handy, when
    a Windows "improvement", causes the shutdown controls
    in some menu to fail to show up. The alt-F4 method
    always seems to work.

    Thus, we can conclude from this, that the program developer
    sees that Windows does that with alt-F4, so the developer
    decides that a "naked F4" will be the exit key.

    That is the only significance. Imitation.

    The F4 key can have other functions bound to it,
    like on a laptop you may find additional control symbols
    bound to the keys.

    Paul


    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Burns@21:1/5 to Stan Brown on Thu Mar 23 05:21:04 2023
    Stan Brown wrote:

    Michael wrote:

    What's the magic of the F4 Windows keyboard key?

    There is none.

    Agreed, F4 is just a normal key, it's up to software to decide how it
    reacts when it gets pressed/released.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Herbert Kleebauer@21:1/5 to Michael on Thu Mar 23 10:07:09 2023
    XPost: alt.comp.hardware

    On 23.03.2023 05:12, Michael wrote:

    Otherwise, I guess I just have to get over it but at night on an unlit keyboard (and especially laptops which require fn first) it's harder.

    Why not use a hardware hack: just a drop of glue on the F4 key so
    you can "feel" the key even in darkness.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Big Al@21:1/5 to this is what Michael on Thu Mar 23 07:50:33 2023
    XPost: alt.comp.os.windows-11, alt.comp.hardware

    On 3/23/23 00:12, this is what Michael wrote:
    On Wed, 22 Mar 2023 23:18:46 -0400, Paul wrote:

    Thus, we can conclude from this, that the program developer
    sees that Windows does that with alt-F4, so the developer
    decides that a "naked F4" will be the exit key.

    That is the only significance. Imitation.

    Do you think I can map the F4 key (which I don't use for anything else) to
    a key that I can more easily use (especially on the smaller laptops and especially at night because my small laptop has no lights in the keys)?

    I've tried other keys, like F3 and control+c which work to some extent but which often hang up. I saw people asked the same question on the openvpn forum and the developers were snotty (imho) telling them what's the problem with using the F4 key. Get over it.

    Otherwise, I guess I just have to get over it but at night on an unlit keyboard (and especially laptops which require fn first) it's harder.
    There are usb clip on lights that you can get for a laptop. https://www.amazon.com/i2-Gear-Dimmable-Flexible-Gooseneck/dp/B0BSG8ZTGS
    Just one of may diff styles. Some even change colors & dim.
    --
    Al

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stan Brown@21:1/5 to Michael on Thu Mar 23 07:26:18 2023
    XPost: alt.comp.os.windows-11, alt.comp.hardware

    On Wed, 22 Mar 2023 22:12:59 -0600, Michael wrote:
    Do you think I can map the F4 key (which I don't use for anything else) to
    a key that I can more easily use (especially on the smaller laptops and especially at night because my small laptop has no lights in the keys)?

    But of course. The free and well-regarded Autohotkey will do that.

    https://www.autohotkey.com/

    --
    Stan Brown, Tehachapi, California, USA https://BrownMath.com/
    Shikata ga nai...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bucky Breeder@21:1/5 to All on Thu Mar 23 16:18:34 2023
    XPost: alt.comp.os.windows-11, alt.comp.hardware

    Michael <michael@spamcop.com> posted this via news:tvgdei$7a6$1 @nnrp.usenet.blueworldhosting.com:

    What's the magic of the F4 Windows keyboard key?

    They had to put something on the key between F3 and F5, so after years of collaberation, government approval processes, appropriate licensing, and numberous polls, they decided to go with F4.

    The people who got the Nobel Prize for that probably did not credit all the dedicated specialists who contributed to the development of the concept, but all of humanity has benefited greatly from their diligent efforts. Their families and ancestors should be very proud of their contributions to the advancement of all mankind.

    --

    I AM Bucky Breeder, (*(^;

    And *NO*, that is *NOT* a Jedi Light Saber I have in my pocket!

    But that doesn't necessarily mean I'm happy to see you either.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ken Blake@21:1/5 to the_stan_brown@fastmail.fm on Thu Mar 23 11:52:12 2023
    XPost: alt.comp.os.windows-11, alt.comp.hardware

    On Thu, 23 Mar 2023 07:26:18 -0700, Stan Brown
    <the_stan_brown@fastmail.fm> wrote:

    On Wed, 22 Mar 2023 22:12:59 -0600, Michael wrote:
    Do you think I can map the F4 key (which I don't use for anything else) to >> a key that I can more easily use (especially on the smaller laptops and
    especially at night because my small laptop has no lights in the keys)?

    But of course. The free and well-regarded Autohotkey will do that.

    https://www.autohotkey.com/



    I like Autohotkey a lot and use it extensively, but not for mapping
    keys. For mapping keys, I use Sharpkeys, which I think is much easier
    to use for that purpose.

    https://sharpkeys.en.softonic.com/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From AllanH@21:1/5 to Ken Blake on Thu Mar 23 15:21:07 2023
    On 3/23/2023 1:52 PM, Ken Blake wrote:

    On Thu, 23 Mar 2023 07:26:18 -0700, Stan Brown
    <the_stan_brown@fastmail.fm> wrote:

    On Wed, 22 Mar 2023 22:12:59 -0600, Michael wrote:
    Do you think I can map the F4 key (which I don't use for anything else) to >>> a key that I can more easily use (especially on the smaller laptops and
    especially at night because my small laptop has no lights in the keys)?

    But of course. The free and well-regarded Autohotkey will do that.

    https://www.autohotkey.com/



    I like Autohotkey a lot and use it extensively, but not for mapping
    keys. For mapping keys, I use Sharpkeys, which I think is much easier
    to use for that purpose.

    https://sharpkeys.en.softonic.com/

    I use a much older program (no longer developed) for keyboard
    customization - KeyTweak. I don't know if it works with Windows 11, but
    if that doesn't matter, you may prefer it yourself.

    https://www.majorgeeks.com/files/details/keytweak.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ken Blake@21:1/5 to All on Fri Mar 24 10:17:24 2023
    On Thu, 23 Mar 2023 15:21:07 -0500, AllanH <nospam@unokix.invalid>
    wrote:

    On 3/23/2023 1:52 PM, Ken Blake wrote:

    On Thu, 23 Mar 2023 07:26:18 -0700, Stan Brown
    <the_stan_brown@fastmail.fm> wrote:

    On Wed, 22 Mar 2023 22:12:59 -0600, Michael wrote:
    Do you think I can map the F4 key (which I don't use for anything else) to >>>> a key that I can more easily use (especially on the smaller laptops and >>>> especially at night because my small laptop has no lights in the keys)? >>>
    But of course. The free and well-regarded Autohotkey will do that.

    https://www.autohotkey.com/



    I like Autohotkey a lot and use it extensively, but not for mapping
    keys. For mapping keys, I use Sharpkeys, which I think is much easier
    to use for that purpose.

    https://sharpkeys.en.softonic.com/

    I use a much older program (no longer developed) for keyboard
    customization - KeyTweak. I don't know if it works with Windows 11, but
    if that doesn't matter, you may prefer it yourself.

    https://www.majorgeeks.com/files/details/keytweak.html

    I just looked at that link. It appears to be much like Sharpkeys.

    Also, I've already done all the remapping I want to do (turning off
    Caps Lock and Insert, both of which I am liable to hit by mistake), so
    unless another need comes up some day, I no longer really need any
    such program.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)