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

            ke.Emulate();
        }