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; }
private void button3_Click(object sender, EventArgs e) { L2KeyEmulating ke = ProgressBindings.Progresses[(int)L2ObjectStateType.TargetHp].Bindings[0].Keys[0]; ke.Emulate(); }