예제 #1
0
        private void TestBuy()
        {
            TMR_Buy.Stop();
            TMR_Buy.Interval = rand.Next(50, 150);


            for (int i = 0; i < 20; ++i)
            {
                ////////////////////////////////////////////////////////
                //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_StopAll_Click(object sender, EventArgs e)
 {
     TMR_Buy.Stop();
     TMR_Refresh.Stop();
     TMR_Start.Stop();
 }