Hi there,
i'm having a small problem with my current BT-keyboard which is made to be used with tablets or phone but currently i'm using it for my laptop and use AHK to remap keys that are missing for full windows functionality.
I'm having a 'Lang' -key on my keyboard that is received by my laptop as "Shit + Space"-press. Alright, i want to remap this key with AHK to behave just as the Win-key on a ordinary keyboard but having a bit of a struggle here. This is what I've got so far:
This simulates a ordinary Win-key press:
Shift & Space:: KeyWait Shift KeyWait Space Send {LWin} return
That's cool but that doesn't give me the full functionality of the win-key such as the Win+d combination to show me the desktop. The following script let me send key combinations but in the wrong order which is quite irritating.
Shift & Space:: If GetKeyState("d","P") Send {RWin down}d{RWin up} return
And finally this script seems to hold the win-key pressed for ever which gives me the combination functionality but still sucks since it won't let me use my keyboard in any other way:
Shift & Space:: Send {LWin} return
What i'm looking for is a way to just tell AHK to:
When holding my 'Lang'-key -> Press and hold the Win-key
If (pressing another key) -> Send win-key + pressed key -combination and release all.
if(releasing 'Lang'-key) -> just act as a Win-key.
Any Suggestions?