private void timer_macro_Tick(object sender, EventArgs e) { if (COD.checkGame()) { lbl_gameName.Text = COD.LongGameName(); } foreach (Macro macro in GetMacros()) { if (GetAsyncKeyState((Keys)Enum.Parse(typeof(Keys), ((Keys)macro.Key).ToString()))) { SendDvarToGame(File.ReadAllText(macro.CfgPath)); } } }