Пример #1
0
 /// <summary>
 /// Massファイルを読み込み、各変数に初期値を代入
 /// </summary>
 /// <param name="mass"></param>
 internal Job(Mass mass)
 {
     this._mass    = mass;
     this._logging = new Common.Logging("job.log");
     _enablekeyF   = new Dictionary <byte, bool>();
     _enablekeyE   = new Dictionary <byte, bool>();
     for (byte key = 0x00; key <= 0xff; key++)
     {
         _enablekeyF.Add(key, false);
         _enablekeyE.Add(key, false);
         if (key == 0xff)
         {
             break;
         }
     }
     this._enableToggle = new Dictionary <int, bool>();
     foreach (var t in mass.Toggles)
     {
         this._enableToggle.Add(t.Id, false);
     }
     if (_skillLayer == null)
     {
         _skillLayer = new SkillLayer();
         _skillLayer.Show();
     }
     this._barrageTaskCancelToken = new CancellationTokenSource();
     Task.Run(() => BarrageLoop(), this._barrageTaskCancelToken.Token);
     IconUpdate();
 }
Пример #2
0
        /// <summary>
        /// コンストラクタ
        /// コンポーネント初期化のほかに、変数の初期化、設定リストの読み込み、タイマーのスタート、キーフックのスタートを行う
        /// </summary>
        internal MainForm()
        {
            InitializeComponent();
            this._logging = new Common.Logging( "main.log" );
            this._hotKeys = new Dictionary<byte, string>();

            LoadSettingList();

            if( Properties.Settings.Default.activeWindowMonitoring ) {
                this.timerActiveWindowCheck.Interval = Properties.Settings.Default.activeWindowMonitoringinterval;
                this.timerActiveWindowCheck.Start();
            }

            var keyboardHook = new KeyboardHook();
            keyboardHook.KeyboardHooked += KeyHookEvent;

            Application.ApplicationExit += Application_ApplicationExit;
            this._massLoaded = true;
            this._formLoaded = true;
        }
Пример #3
0
        /// <summary>
        /// コンストラクタ
        /// コンポーネント初期化のほかに、変数の初期化、設定リストの読み込み、タイマーのスタート、キーフックのスタートを行う
        /// </summary>
        internal MainForm()
        {
            InitializeComponent();
            this._logging = new Common.Logging("main.log");
            this._hotKeys = new Dictionary <byte, string>();

            LoadSettingList();

            if (Properties.Settings.Default.activeWindowMonitoring)
            {
                this.timerActiveWindowCheck.Interval = Properties.Settings.Default.activeWindowMonitoringinterval;
                this.timerActiveWindowCheck.Start();
            }

            var keyboardHook = new KeyboardHook();

            keyboardHook.KeyboardHooked += KeyHookEvent;

            Application.ApplicationExit += Application_ApplicationExit;
            this._massLoaded             = true;
            this._formLoaded             = true;
        }
Пример #4
0
		/// <summary>
		/// Massファイルを読み込み、各変数に初期値を代入
		/// </summary>
		/// <param name="mass"></param>
		internal Job( Mass mass ) {
			this._mass = mass;
			this._logging = new Common.Logging( "job.log" );
			_enablekeyF = new Dictionary<byte, bool>();
			_enablekeyE = new Dictionary<byte, bool>();
			for( byte key = 0x00; key <= 0xff; key++ ) {
				_enablekeyF.Add( key, false );
				_enablekeyE.Add( key, false );
				if( key == 0xff ) {
					break;
				}
			}
			this._enableToggle = new Dictionary<int, bool>();
			foreach( var t in mass.Toggles ) {
				this._enableToggle.Add( t.Id, false );
			}
			if( _skillLayer == null ) {
				_skillLayer = new SkillLayer();
				_skillLayer.Show();
			}
			this._barrageTaskCancelToken = new CancellationTokenSource();
			Task.Run( () => BarrageLoop(), this._barrageTaskCancelToken.Token );
			IconUpdate();
		}