示例#1
0
        public AutoHotkeySuspendedMode(bool alwaysShow)
        {
            this.InitializeComponent();

            this.ShowInTaskbar = false;

            this.alwaysShow = alwaysShow;
            this.InitializeSimpleNotification(false, false);

            showTimer = new SafeTimer(100, ShowTimer);
            showTimer.Start();
        }
        public AutoHotkeySuspendedMode(bool alwaysShow)
        {
            this.InitializeComponent();

            this.ShowInTaskbar = false;

            this.alwaysShow = alwaysShow;
            this.InitializeSimpleNotification(false, false);

            showTimer = new SafeTimer(100, ShowTimer);
            showTimer.Start();
        }
示例#3
0
        public static void StartScanning()
        {
            scanTimer          = new System.Timers.Timer(10000);
            scanTimer.Elapsed += StuckScanning;

            int initialScanSpeed = SettingsManager.getSettingInt("ScanSpeed") * 15 + 1;

            missingChunkScanTimer = new SafeTimer(initialScanSpeed, ScanMissingChunksTimer);
            missingChunkScanTimer.Start();

            initialScanSpeed = SettingsManager.getSettingInt("ScanSpeed") * 5 + 1;
            mainScanTimer    = new SafeTimer(initialScanSpeed, MainScanTimer);
            mainScanTimer.Start();

            currentState = ScanningState.NoTibia;
        }
示例#4
0
        public static void Initialize()
        {
            try {
                InitializeMemoryAddresses();

                healthTimer = new SafeTimer(10, UpdateHealth);
                healthTimer.Start();

                manaTimer = new SafeTimer(10, UpdateMana);
                manaTimer.Start();

                expTimer = new SafeTimer(10, UpdateExp);
                expTimer.Start();
            } catch (Exception ex) {
                MainForm.mainForm.DisplayWarning("Failed to read memory addresses file: " + ex.Message);
            }
            InitializeBattleList();
        }
示例#5
0
        protected void InitializeSimpleNotification(bool movement = true, bool destroy = true, double extraTime = 0)
        {
            this.Click += c_Click;
            foreach (Control c in this.Controls)
            {
                c.Click += c_Click;
            }

            this.animations = SettingsManager.getSettingBool("EnableSimpleNotificationAnimation");

            if (movement)
            {
                moveTimer = new SafeTimer(1, MoveTimer_Elapsed);
                moveTimer.Start();
            }
            if (destroy)
            {
                System.Threading.Tasks.Task.Delay((int)((Math.Max(SettingsManager.getSettingInt("PopupDuration"), 1) + extraTime) * 1000)).ContinueWith(x => CloseNotification());
            }
        }
示例#6
0
        public static void Initialize()
        {
            try {
                InitializeMemoryAddresses();

                healthTimer = new SafeTimer(10, UpdateHealth);
                healthTimer.Start();

                manaTimer = new SafeTimer(10, UpdateMana);
                manaTimer.Start();

                expTimer = new SafeTimer(10, UpdateExp);
                expTimer.Start();

                screenshotTaken           = false;
                screenshotTimer           = new System.Timers.Timer(30000);
                screenshotTimer.Elapsed  += ResetScreenshotTaken;
                screenshotTimer.AutoReset = false;
            } catch (Exception ex) {
                MainForm.mainForm.DisplayWarning("Failed to read memory addresses file: " + ex.Message);
            }
            InitializeBattleList();
        }
 public static void Initialize()
 {
     updateTimer = new SafeTimer(50, UpdateTimer_Tick);
     updateTimer.Start();
 }
示例#8
0
 public static void Initialize()
 {
     updateTimer = new SafeTimer(50, UpdateTimer_Tick);
     updateTimer.Start();
 }
示例#9
0
 public static void Initialize()
 {
     TibiaClientName = SettingsManager.settingExists("TibiaClientName") ? SettingsManager.getSettingString("TibiaClientName") : TibiaClientName;
     detectTibiaActive.Start();
 }
示例#10
0
 public void SetTargetCoordinate(Coordinate coordinate)
 {
     this.targetCoordinate = coordinate;
     refreshTimer.Start();
 }
示例#11
0
 private void HealthList_Load(object sender, EventArgs e)
 {
     timer = new SafeTimer(10, Timer_Elapsed);
     timer.Start();
 }
示例#12
0
 private void HealthList_Load(object sender, EventArgs e)
 {
     timer = new SafeTimer(10, Timer_Elapsed);
     timer.Start();
 }
示例#13
0
 private void Portrait_Load(object sender, EventArgs e)
 {
     timer = new SafeTimer(10, Timer_Tick);
     timer.Start();
 }
示例#14
0
 public CurveBar()
 {
     updateTimer = new SafeTimer(10, updateTimer_Tick);
     updateTimer.Start();
     alwaysShow = SettingsManager.getSettingBool("AlwaysShowHUD");
 }
示例#15
0
 private void StatusBar_Load(object sender, EventArgs e)
 {
     timer = new SafeTimer(10, Timer_Tick);
     timer.Start();
 }
示例#16
0
        public static void Initialize()
        {
            try {
                InitializeMemoryAddresses();

                healthTimer = new SafeTimer(10, UpdateHealth);
                healthTimer.Start();

                manaTimer = new SafeTimer(10, UpdateMana);
                manaTimer.Start();

                expTimer = new SafeTimer(10, UpdateExp);
                expTimer.Start();

                screenshotTaken = false;
                screenshotTimer = new System.Timers.Timer(30000);
                screenshotTimer.Elapsed += ResetScreenshotTaken;
                screenshotTimer.AutoReset = false;
            } catch (Exception ex) {
                MainForm.mainForm.DisplayWarning("Failed to read memory addresses file: " + ex.Message);
            }
            InitializeBattleList();
        }