#Include <WinAPIEx.au3>
HotKeySet("{CapsLock}","_Bigsmall") ;判断大小写状态
$i=1
Do
Sleep(100)
Until $i=0
Func _Bigsmall()
$CapsStatus=_WinAPI_GetKeyState(20)
If $CapsStatus=-127 Then
MsgBox(64,"当前大小写状态","已开启!",1)
Else
MsgBox(48,"当前大小写状态","已关闭!",1)
EndIf
EndFunc