         KeyboardLED(4, "on")
     Else
         KeyboardLED(4, "off")
+return
+
+^CapsLock::
+    ChineseLayout := 0
+    KeyboardLED(4, "off")
 return
 
 /*

{
  VarSetCapacity(out,2*StrPut(str_,"utf-16"))
  StrPut(str_,&out,"utf-16")
}
﻿#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

SetKeyDelay , 30, 30 ; first is delay between keypresses, and second is press duration

#WinActivateForce
DetectHiddenWindows, On

#MaxHotkeysPerInterval 200

Ctrl UP::Send {Escape}
Ctrl & F13::

^Tab::
Send #{Tab}
return

^!o::
IfWinActive, ahk_exe Obsidian.exe
    sleep, 10
else
    WinActivate ahk_exe Obsidian.exe
return

^!g::
IfWinActive, ahk_exe msedge.exe
    sleep, 10
else
    WinShow ahk_exe msedge.exe
    WinActivate ahk_exe msedge.exe
    MouseClick
return

^!m::
IfWinActive, ahk_exe chrome.exe
    sleep, 10
else
    WinShow ahk_exe chrome.exe
    WinActivate ahk_exe chrome.exe
    MouseClick
return

^`::
IfWinActive, ahk_exe WindowsTerminal.exe
    sleep, 10
else
    WinActivate ahk_exe WindowsTerminal.exe
    MouseClick
return

^!Space::
