markdown 啊切换

Posted

tags:

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

### Toggling part of script on/off with one keybind (Alt+R)  

```
toggle:=False                           ;our switch

#If toggle and WinActive("ahk_class Chrome_WidgetWin_1")     ;WinActive to prohibit the script interact outside Chrome
    a::send tere
#If

!r:: 	                               ;Alt+R       you can replace !r with its' VK equivalent !vk52
    KeyWait, r
    (toggle:=!toggle) ? "on":"off"	  ;toggle keybinds on/off
    Return
```
is the same as (at least seem to):  
```
!r:: 
toggle:=!toggle

#If toggle and WinActive("ahk_class Chrome_WidgetWin_1")    
    a::send tere		
#If
```
Another toggle:  
````
#MaxThreadsPerHotkey 2

CapsLock::
if (toggle := !toggle) {
	; on
} else {
	; off
}
return
```

以上是关于markdown 啊切换的主要内容,如果未能解决你的问题,请参考以下文章

markdown 啊3键热键

markdown 啊脚本重装

markdown 啊,TODO

Markdown是啥意思啊?

markdown 如何切换FN按钮行为macbook

markdown 切换HTML,CSS,JavaScript