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?
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.
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).
Michael wrote:
What's the magic of the F4 Windows keyboard key?
There is none.
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.
On Wed, 22 Mar 2023 23:18:46 -0400, Paul wrote:There are usb clip on lights that you can get for a laptop. https://www.amazon.com/i2-Gear-Dimmable-Flexible-Gooseneck/dp/B0BSG8ZTGS
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.
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)?
What's the magic of the F4 Windows keyboard key?
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/
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/
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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 02:26:58 |
Calls: | 6,666 |
Calls today: | 4 |
Files: | 12,212 |
Messages: | 5,335,604 |