I have a laptop that I sometimes use with an external keyboard. The ordering of the modifier keys on the external keyboard is not standard, so I use an Autohotkey script to swap the Alt and Windows keys.
I'd like the key swap to function when the external keyboard is plugged in, and stop functioning when the external keyboard is not plugged in. Is this possible?
Would like hotkeys to only work when external keyboard is plugged in
Re: Would like hotkeys to only work when external keyboard is plugged in
sounds like you want to have ahk be smart enough to tell which keyboard is saying what
https://www.youtube.com/watch?v=Arn8ExQ2Gjg
https://www.youtube.com/watch?v=Arn8ExQ2Gjg
Re: Would like hotkeys to only work when external keyboard is plugged in
Recently appears a thread that could help: viewtopic.php?p=484546#p484546
If you plug your external keyboard, you automatically run a script (the one that swaps the keys).
If you unplug your external keyboard, you close the swapping script.
Please note that if you run your script that swaps keys, the keys will be swapped on both keyboards at the same time, because windows don't identify wich key came from each keyboard.
If you plug your external keyboard, you automatically run a script (the one that swaps the keys).
If you unplug your external keyboard, you close the swapping script.
Please note that if you run your script that swaps keys, the keys will be swapped on both keyboards at the same time, because windows don't identify wich key came from each keyboard.