public void SetKey(int index, TextBox textBox) { if (Keys [index] == null) { Keys [index] = new L2KeyEmulating(window, textBox); } }
public void ProcessKeys() { if (KeysQueue.Count == 0) { return; } TimeSpan dt = DateTime.Now - lastKeyPressTime; if (dt.TotalMilliseconds < 300) { return; } L2KeyEmulating key = KeysQueue.Dequeue(); key.Emulate(); lastKeyPressTime = DateTime.Now; }
public void SetKey(int index, TextBox textBox) { if (Keys [index] == null) { Keys [index] = new L2KeyEmulating (window, textBox); } }
private void button3_Click(object sender, EventArgs e) { L2KeyEmulating ke = ProgressBindings.Progresses[(int)L2ObjectStateType.TargetHp].Bindings[0].Keys[0]; ke.Emulate(); }