예제 #1
0
        public async Task RightClickMiddle(double radians)
        {
            _wowWindow.SetForeground();
            var pixel = radians / 0.03927 * 10;

            var p = _wowWindow.ClientRectangle.Middle();

            await SetCursorPos(p);

            _wowWindow.SetForeground();
            await Sleep(100);

            _mouseSimulator.RightButtonDown();
            await Sleep(100);

            _mouseSimulator.MoveMouseBy((int)pixel, 0);
            await Sleep(100);

            _mouseSimulator.RightButtonUp();
            await Sleep(3000);
        }
예제 #2
0
        public async Task SimulateKeyPress(KeyBinding kb)
        {
            _wowWindow.SetForeground();

            await SimulateKeyPress(_keyBinds.GetKeyBind(kb));
        }