Beispiel #1
0
        public frmMain()
        {
            InitializeComponent();

            BejeweledColor.Collection = new List <Color>();
            BejeweledColor.Collection.Add(BejeweledColor.Blue);
            BejeweledColor.Collection.Add(BejeweledColor.Green);
            BejeweledColor.Collection.Add(BejeweledColor.Orange);
            BejeweledColor.Collection.Add(BejeweledColor.Purple);
            BejeweledColor.Collection.Add(BejeweledColor.Red);
            BejeweledColor.Collection.Add(BejeweledColor.White);
            BejeweledColor.Collection.Add(BejeweledColor.Yellow);

            m_BWM = new BejeweledWindowManager(screenGrabTimer);
            WinAPI.Startup(m_BWM);
        }
 public frmMain()
 {
     InitializeComponent();
     m_BWM                     = new BejeweledWindowManager();
     m_BWM.BotRunning          = false;
     BejeweledColor.Collection = new List <Color>();
     BejeweledColor.Collection.Add(BejeweledColor.Blue);
     BejeweledColor.Collection.Add(BejeweledColor.Green);
     BejeweledColor.Collection.Add(BejeweledColor.Orange);
     BejeweledColor.Collection.Add(BejeweledColor.Purple);
     BejeweledColor.Collection.Add(BejeweledColor.Red);
     BejeweledColor.Collection.Add(BejeweledColor.White);
     BejeweledColor.Collection.Add(BejeweledColor.Yellow);
     BejeweledColor.Collection.Add(BejeweledColor.YellowCoin);
     BejeweledColor.Collection.Add(BejeweledColor.Black);
     RegisterHotKey(this.Handle, START_HOTKEY_ID, 0, (int)Keys.F2);
 }
Beispiel #3
0
 public static void Startup(BejeweledWindowManager bwm)
 {
     _bwm    = bwm;
     _hookID = SetHook(_proc);
 }