;作者:飞跃
#IfWinActive ahk_class XLMAIN
LWin::
Try {
if !objExcel
objExcel:=ComObjActive(“Excel.Application”)
if (objExcel.ActiveCell.Interior.ColorIndex>0)
objExcel.Selection.Interior.ColorIndex := 0
else
objExcel.Selection.Interior.ColorIndex := 6
}
return
#If