示例#1
0
        private void Bot()
        {
            TMR_Start.Stop();
            TMR_Start.Interval = rand.Next(50, 150);

            ////////////////////////////////////////////////////////
            //Refresh button

            modHighY = (float)1440 / (float)940;
            highestY = (int)(Math.Floor((float)yRes / modHighY + 0.5));
            modLowY  = (float)1440 / (float)965;
            lowestY  = (int)(Math.Floor((float)yRes / modLowY + 0.5));

            modHighX = (float)2560 / (float)1180;
            highestX = (int)(Math.Floor((float)xRes / modHighX + 0.5));
            modLowX  = (float)2560 / (float)1052;
            lowestX  = (int)(Math.Floor((float)xRes / modLowX + 0.5));

            point.X         = rand.Next(lowestX, highestX);
            point.Y         = rand.Next(highestY, lowestY);
            Cursor.Position = point;

            System.Threading.Thread.Sleep(rand.Next(25, 80));
            ////////////////////////////////////////////////////////

            ////////////////////////////////////////////////////////
            //Buy/Bid button

            modHighY2 = (float)1440 / (float)508;
            highestY2 = (int)(Math.Floor((float)yRes / modHighY2 + 0.5));
            modLowY2  = (float)1440 / (float)545;
            lowestY2  = (int)(Math.Floor((float)yRes / modLowY2 + 0.5));

            modHighX2 = (float)2560 / (float)1650;
            highestX2 = (int)(Math.Floor((float)xRes / modHighX2 + 0.5));
            modLowX2  = (float)2560 / (float)1595;
            lowestX2  = (int)(Math.Floor((float)xRes / modLowX2 + 0.5));;

            point.X         = rand.Next(lowestX2, highestX2);
            point.Y         = rand.Next(highestY2, lowestY2);
            Cursor.Position = point;

            System.Threading.Thread.Sleep(rand.Next(25, 80));
            ////////////////////////////////////////////////////////
        }
示例#2
0
 private void BTN_Go_Click(object sender, EventArgs e)
 {
     TMR_Start.Start();
 }
示例#3
0
 private void BTN_StopAll_Click(object sender, EventArgs e)
 {
     TMR_Buy.Stop();
     TMR_Refresh.Stop();
     TMR_Start.Stop();
 }
示例#4
0
        private void TMR_Start_Tick(object sender, EventArgs e)
        {
            Bot();

            TMR_Start.Start();
        }