public void RecordMacro() { InputDetection.InputDetected += InputDetection_InputDetected1; InputDetection.MouseMoveInterval = (int)nudMouseMoveInterval.Value; InputDetection.EnableMouseMoveDetection(cbMouseMoveRecord.Checked); m_lastCommandTime = DateTime.MinValue; }
public void StopRecordMacro() { InputDetection.InputDetected -= InputDetection_InputDetected1; InputDetection.EnableMouseMoveDetection(false); for (int i = 0; i < 4 && m_node.Nodes.Count - 1 >= 0; i++) { m_node.Nodes.RemoveAt(m_node.Nodes.Count - 1); } }
public void RemoveActivators() { foreach (Activator a in Nodes[0].Nodes) { if (a.GetType() == typeof(ActivatorShortcut)) { InputDetection.RemoveShortcut((a as ActivatorShortcut).Shortcut); } } }
public static void RemoveEvents(TreeNode rootNode) { if (rootNode.GetType() == typeof(ActivatorShortcut)) { InputDetection.RemoveShortcut((rootNode as ActivatorShortcut).Shortcut); } else { foreach (TreeNode tn2 in rootNode.Nodes) { RemoveEvents(tn2); } } }
public ActivatorShortcut(Shortcut shortcut, bool loopexecution, Macro makro) { Shortcut = shortcut; LoopexEcution = loopexecution; m_makro = makro; m_shortcut.ShortcutPressed += M_shortcut_ShortcutPressed; InputDetection.RegistarteShortcut(m_shortcut); Text = "Shortcut \""; for (int i = 0; i < m_shortcut.Keys.Count; i++) { Text += (i > 0 ? " + " : "") + m_shortcut.Keys[i].ToString(); } Text += "\""; ImageKey = "key"; SelectedImageKey = "key"; Name = "activator"; }
public Macros() { InputDetection.SubscribeGlobal(); }