示例#1
0
        public void UsePotionOrWait()
        {
            var tibiaWindowFocused = TibiaClient.IsFocused();

            if (!tibiaWindowFocused)
            {
                return;
            }

            if (MustUsePotion())
            {
                SendKeys.Send("{" + Configuration.Settings.Mana.HotKey + "}");
            }
        }
示例#2
0
        public static void FindHealthAndManaBar()
        {
            TibiaClient.SetForeground();
            Thread.Sleep(350);

            var screenShot = Screenshot.FullDesktop();

            HealthBarPosition = new HealthBar().Find(screenShot);
            ManaBarPosition   = new ManaBar().Find(screenShot);

            screenShot.Dispose();

            CopyBarsCoordinatesToConfigurationModel();

            Save();
        }