markdown ahk重新绑定非修饰键

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown ahk重新绑定非修饰键相关的知识,希望对你有一定的参考价值。

Rebind <acronym title="aka not Ctrl, Shift, Alt, Win">non-modifier</acronym> keys _without_&nbsp; triggering single key function when pushing combo <font size=1>(give sufficient time to push down the second key)</font>      
NB! Wrecks other keybinds using Capslock. For example if caps sends -, then every other keybind using caps gets a - and only after the timeout (1.2 seconds) which usually means _after_ the other keybind has executed (can't delete the backspace anymore)!
#### Solution: &emsp; BEST 
```ahk
CapsLock::
  ;code 
  Return
 
CapsLock & Esc::
  ;code
  Return

Space & Esc::
  ;code
  Return
```
IF capslock puts something out, you can simply delete this with `Send {backspace 4}`
#### Solution: &emsp; without capslock-only  
```
CapsLock::Return
CapsLock & Esc::
  ;code   
  Return   
```
#### Solution: &emsp; limited (doesn't work well with multiple keys - if at all)
```ahk
CapsLock & Esc::Return            ;needed!
CapsLock::
  KeyWait, Esc, D T.1.2           ;use Esc
	
	if (!ErrorLevel) {            ;Caps + Esc
	  ;code
	}
	else {                        ;CapsLock
	  ;code					
	} 
	Return
``` 
#### Solution: &emsp; saving for reference in case never ways stop working (it's buggy)  
```ahk
CapsLock::Return           ;important!   due to the bottom kb keyword UP, capslock default has to be disabled expicitly with ~
CapsLock up::               ;UP keyword is VERY important here - so other keybinds won't trigger this caps-only one!
  ;code          
  Return
		
CapsLock & Esc::
  ;code   
  Return          
```

以上是关于markdown ahk重新绑定非修饰键的主要内容,如果未能解决你的问题,请参考以下文章

markdown AHK问题

markdown ahk系统(OS)输入语言

markdown ahk rebind默认

AHK任意键怎么用啊

键绑定中的修饰符(SHIFT +(随机键))

ahk脚本题。