convenient. So what i need is 3 layers in keyboard, layer1, layer2 that activates when i press once LAlt, and it must go back to layer1 when i press Lalt again, and layer3 that activates when i press and HOLD LAlt, and it must go back when i release it(It must go back to the layer from which it was activated. It's means that if I press and hold Lalt in layer1, after releasing it must back to layer1 if from layer2, must back in layer2). So i have this code:
Code: Select all
LAlt::
T := !T
return
#If T
SC017::7
SC018::8
SC019::9
SC025::4
SC026::5
SC027::6
SC032::1
SC033::2
SC034::3
SC035::0
#If GetKeyState("LAlt", "P")
SC01E::+
SC01F::-
SC020::*
SC021::/
SC010::(
SC011::)
SC012::{
SC013::}
SC014::[
SC015::]
return
Problem with this is that when I in layer1 no matter I just press or press and hold is always goes to layer2. When I in layer2 it works better but not as i want. If in layer2 i press LAlt once it goes to layer1 if i press and hold it goes to layer 3, but after releasing it goes back to layer1. Would very appreciate for any help.
[Mod edit: Changed quote tags to code tags.]