 	Return
 
 +Capslock::
-	ToggleKeyboard("")
+	ToggleKeyboard("Normal")
 	Return
 
 !Capslock::

	Send {``}
	If (BTickLangChange = 1)
	{
		ToggleLanguage()
	}
	Return

; ====================================================================

Capslock::
	ToggleLanguage()
	Return

<^Capslock::

#SingleInstance Force
SetTitleMatchMode, RegEx
SetCapsLockState, AlwaysOff

; ====================================================================

FindKey(Array, Element)
{
	For K, V In Array
	{
		If (Element = V)
		{
			Return K
		}
	}
	Return False
}

Count(Object)
{
	R := 0
	For K In Object
	{
		R += 1
	}
	Return R
}

PushRange(Array, Other)
{
	Loop % Other.Length()
	{
		Array.Push(Other[A_Index])
	}
}

ToString(Obj)
{
	Return ToStringImpl(Obj, "")
}

ToStringImpl(Obj, Indent)
{
	R := ""

	For K, V In Obj
	{
		If (!R)
		{
			R .= "{`n    " . Indent
		}
		Else
		{
			R .= ",`n    " . Indent
		}
		R .= K . ": " . ToStringImpl(V, Indent . "    ")
	}
	If (!R)
	{
		Return Obj
	}
	R .= "`n" . Indent . "}"
	Return R
}

; ====================================================================

