Exemplo n.º 1
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;
     }
 }
Exemplo n.º 2
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;
     //}
 }
Exemplo n.º 3
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;
     }
 }
Exemplo n.º 4
0
        private void hotKeyManager_GlobalHotKeyPressed(object sender, GlobalHotKeyEventArgs e)
        {
            _craftWorker.Paused = !_craftWorker.Paused;

            if(_craftWorker.Paused)
            {
                this.Title = "Paused..";
            } else
            {
                this.Title = "Crafting Bot";
            }
        }