local F = far.Flags local cid=win.Uuid("87C92249-430D-4334-AC33-05E7423286E9") local clr="D2F36B62-A470-418D-83A3-ED7A3710E5B5" Event { description="FarColorerStatus"; group="DialogEvent"; condition=function(Event,param) if Event==F.DE_DLGPROCINIT and param.Msg==F.DN_INITDIALOG then local info = param.hDlg:send(F.DM_GETDIALOGINFO) return info and info.Id==cid end end; action=function(Event,param) local hDlg = param.hDlg _G.FarColorerStatus = hDlg:send(F.DM_SETCHECK,2,F.BSTATE_UNCHECKED) end; } Macro{ area="Common"; description="FarColorerStatus"; keys="FarColorerStatus"; action=function() Plugin.Call(clr,0) Menu.Select("Configure",2) Keys("Enter Enter") end; } |