示例#1
0
        public MemoryReader(KeyboardSimulator keyboardSimulator, LogiXBot lb, double manaPercentInput, double hpPercentLightHealInput, double hpPercentIntenseHealInput)
        {
            this.lb = lb;
            this.manaPercentInput = manaPercentInput;
            this.hpPercentLightHealInput = hpPercentLightHealInput;
            this.hpPercentIntenseHealInput = hpPercentIntenseHealInput;

            timer = new Timer();
            timer.Interval = 300;
            timer.Elapsed += new ElapsedEventHandler(TimerTick);
            timer.Start();
            this.keyboardSimulator = keyboardSimulator;

            readValuesFromMemory();
        }
示例#2
0
        private void start_button_Click(object sender, EventArgs e)
        {
            uint selectedManaHotkey = (uint)this.mana_hotkey.SelectedValue;
            uint selectedLightHealHotkey = (uint)this.light_heal_hotkey.SelectedValue;
            uint selctedIntenseHealHotkey = (uint)this.intense_heal_hotkey.SelectedValue;

            double manaPercentInput;
            double hpPercentLightHealInput;
            double hpPercentIntenseHealInput;

            Double.TryParse(this.mana_percent.Text, out manaPercentInput);
            Double.TryParse(this.hp_percent_lh.Text, out hpPercentLightHealInput);
            Double.TryParse(this.hp_percent_ih.Text, out hpPercentIntenseHealInput);

            keyboardSimulator = new KeyboardSimulator(selectedManaHotkey, selectedLightHealHotkey, selctedIntenseHealHotkey);
            new MemoryReader(keyboardSimulator, this, manaPercentInput/100, hpPercentLightHealInput/100, hpPercentIntenseHealInput/100);
        }