Example #1
0
        private void GlobalHotKeyHandler(object sender, GlobalHotKeyEventArgs e)
        {
            if (_ShowHideChat != null)
            {
                if (e.HotKey.Name == _ShowHideChat.Name)
                {
                    if (_ChatWindow.Visibility == Visibility.Visible)
                    {
                        _ChatWindow.UserHide();
                    }
                    else
                    {
                        _ChatWindow.UserShow();
                    }
                }
            }

            if (_ClickThoughtChat != null)
            {
                if (e.HotKey.Name == _ClickThoughtChat.Name)
                {
                    _TataruUIModel.IsChatClickThrough = !_TataruUIModel.IsChatClickThrough;
                }
            }

            if (_ClearChat != null)
            {
                if (e.HotKey.Name == _ClearChat.Name)
                {
                    _ChatWindow.ClearChat();
                }
            }
        }
        private void OnGlobalHotKeyPressed(object sender, GlobalHotKeyEventArgs e)
        {
            if (ShowHideChatKeys != null)
            {
                if (e.HotKey.Name == ShowHideChatKeys.Name)
                {
                    if (this.IsWindowVisible)
                    {
                        IsHiddenByUser = true;
                    }
                    else
                    {
                        IsHiddenByUser = false;
                    }

                    IsWindowVisible = !IsWindowVisible;
                }
            }
            if (ClickThoughtChatKeys != null)
            {
                if (e.HotKey.Name == ClickThoughtChatKeys.Name)
                {
                    IsClickThrough = !IsClickThrough;
                }
            }
            if (ClearChatKeys != null)
            {
                if (e.HotKey.Name == ClearChatKeys.Name)
                {
                    _RequestChatClear.InvokeAsync(new TatruEventArgs(this));
                }
            }
        }
Example #3
0
 private void hotKeyManager_GlobalHotKeyPressed(object sender, GlobalHotKeyEventArgs e)
 {
     //switch (e.HotKey.Name.ToLower())
     //{
     //    case "enable":
     //        if (setfloat == false)
     //        {
     //            _user.Refresh();
     //            floatingposition = _user.Coordinate;
     //            _refresh.Interval = new TimeSpan(0, 0, 0, 0, 1);
     //            setfloat = true;
     //        }
     //        else
     //        {
     //            setfloat = false;
     //        }
     //        break;
     //    case "floatup":
     //        floatingposition.Z += 18;
     //        break;
     //    case "floatdown":
     //        floatingposition.Z = floatingposition.Z - 18;
     //        break;
     //}
 }
Example #4
0
 void MyHotKeyManager_GlobalHotKeyPressed(object sender, GlobalHotKeyEventArgs e)
 {
     if (e.HotKey.Name.ToLower() == "ghkcustom")
     {
         HandleCustomHotKey(); LogEvents(e.HotKey); return;
     }
     System.Diagnostics.Process.Start((e.HotKey.Tag as string));
     LogEvents(e.HotKey);
 }
Example #5
0
 private void hotKeyManager_GlobalHotKeyPressed(object sender, GlobalHotKeyEventArgs e)
 {
     switch (e.HotKey.Name.ToLower())
     {
     case "enablebuffs":
         Global.DisableBuffs  = !Global.DisableBuffs;
         group_Options.Header = "Buffs: " + (!Global.DisableBuffs).ToString();
         break;
     }
 }
Example #6
0
 private void Pause_HotKeyPressed(object sender, GlobalHotKeyEventArgs e)
 {
     if (!this.kc.isRunningFlag || !this.kc.isPlayingFlag)
     {
         return;
     }
     Daigassou.Utils.Log.overlayLog("快捷键:演奏暂停");
     this.pauseTime        = Environment.TickCount;
     this.kc.isPlayingFlag = false;
 }
        private void hotKeyManager_GlobalHotKeyPressed(object sender, GlobalHotKeyEventArgs e)
        {
            _craftWorker.Paused = !_craftWorker.Paused;

            if (_craftWorker.Paused)
            {
                this.Title = "Paused..";
            }
            else
            {
                this.Title = "Crafting Bot";
            }
        }
Example #8
0
 private void Start_HotKeyPressed(object sender, GlobalHotKeyEventArgs e)
 {
     if (!this.kc.isRunningFlag)
     {
         Daigassou.Utils.Log.overlayLog("快捷键:演奏开始");
         this.StartKeyPlayback(1000);
     }
     else
     {
         Daigassou.Utils.Log.overlayLog("快捷键:演奏恢复");
         this.kc.isPlayingFlag = true;
         this.kc.pauseOffset  += Environment.TickCount - this.pauseTime;
     }
 }
Example #9
0
        void MyHotKeyManager_GlobalHotKeyPressed(object sender, GlobalHotKeyEventArgs e)
        {
            switch (e.HotKey.Name.ToLower())
            {
            case "ghkplay":
                PlayPause();
                break;

            case "ghkstop":
                Stop();
                break;

            case "ghkfile":
                File();
                break;
            }
        }
Example #10
0
 private void hotKeyManager_GlobalHotKeyPressed(object sender, GlobalHotKeyEventArgs e)
 {
     switch (e.HotKey.Name.ToLower())
     {
     case "enable":
         if (_stunner.IsEnabled)
         {
             this.Title = "Stopped";
             _stunner.Stop();
         }
         else
         {
             _stunner.Start();
             this.Title = "Running...";
         }
         break;
     }
 }
Example #11
0
 private void PitchDown_HotKeyPressed(object sender, GlobalHotKeyEventArgs e)
 {
     ParameterController.GetInstance().Pitch -= 1;
     Log.overlayLog($"快捷键:向下移调 当前 {ParameterController.GetInstance().Pitch}");
 }
Example #12
0
 private void Stop_HotKeyPressed(object sender, GlobalHotKeyEventArgs e)
 {
     Log.overlayLog($"快捷键:演奏停止");
     StopKeyPlay();
 }