示例#1
0
 /// <summary>
 /// AI checking is determined by looking for the commendation icon of players. Sometimes, this icon is missing. This fixes it.
 /// </summary>
 public void CalibrateAIChecking()
 {
     cg.RightClick(744, 62, 250);
     cg.KeyPress(Keys.Enter);
     Thread.Sleep(250);
     cg.GoBack(1);
     cg.ResetMouse();
 }
示例#2
0
            private bool OpenSlotMenu(int slot)
            {
                Point slotlocation = FindSlotLocation(slot); // Get location of slot

                if (slotlocation.IsEmpty)
                {
                    return(false);
                }
                if (slot > 11)
                {
                    slotlocation.X += -100; // If the slot selected is a spectator or in queue, this prevents the selected slot from sliding to the left.
                }
                // Open slot menu by right clicking on slot.
                cg.Cursor = slotlocation;
                Thread.Sleep(100);
                cg.RightClick(cg.Cursor.X, cg.Cursor.Y);
                cg.updateScreen();
                return(true);
            }