Hi, I'm trying to change how the Windows language switch hotkey works to be like Gnome.
As far as ctrl+win+space is changing to the last language used, I want to map win+space to it for the first occurrence.
The logic should be: for the first time I hit win+space, it will be remapped to ctrl+win+space, if I did not release the win key and hit space again, it would work as normal (win+space).
Is it possible through AHK?
Remapping win+space to ctrl+win+space only for the first hit Topic is solved
-
- Posts: 9
- Joined: 30 Nov 2019, 15:44
Re: Remapping win+space to ctrl+win+space only for the first hit Topic is solved
Useful suggestions, try this:
Code: Select all
LWin & Space::
Send, ^#{Space}
Hotkey, LWin & Space, Off
Return
LWin Up::Hotkey, LWin & Space, On
Esc::ExitApp ; optinal
-
- Posts: 9
- Joined: 30 Nov 2019, 15:44
Re: Remapping win+space to ctrl+win+space only for the first hit
It works perfectly! Thank you so much!rommmcek wrote: ↑01 Dec 2019, 16:32Useful suggestions, try this:Code: Select all
LWin & Space:: Send, ^#{Space} Hotkey, LWin & Space, Off Return LWin Up::Hotkey, LWin & Space, On Esc::ExitApp ; optinal