// 'ExecuteBang' is a way of Rainmeter telling your plugin to do something *right now*. // What it wants to do can be defined by the 'Command' parameter. public void ExecuteBang(Rainmeter.Settings.InstanceSettings Instance, string Command) { //string[] args = Command.Split(' '); //Command = args[0]; try { switch (Command) { case "ClearCache": resetId++; return; } MeasureResult mr = Measure(Instance); mr.Bang(GetOutlook(), Command); } catch (Exception e) { Rainmeter.Log(Rainmeter.LogLevel.Error, e.ToString()); } return; }