its just a prank.. but shows the recatngle arrays and falling pixels in a 25 x 25 region
snapshot of yur current screen after 10seconds... then creates a form and further cascades the pixels.. any key press will end it.. but its autostart will wait another 10 seconds and cascade again.. a screenshot will be written to yur ROOT folder
compile with /t:winexe parameter
//thnx to dotnetspider for the printscreen
//mcsft for rectangle creations
using System.Collections;
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Drawing.Imaging;
using System.Runtime.InteropServices;
using System.Drawing.Drawing2D;
using System.Threading;
using System.Diagnostics;
using System.ComponentModel;
//===================================
public class Animate : System.Windows.Forms.Form
{
[DllImport("GDI32.dll")]
public static extern bool BitBlt(int hdcDest,int nXDest,int nYDest,int nWidth,int nHeight,int hdcSrc,int nXSrc,int nYSrc,int dwRop);
[DllImport("GDI32.dll")]
public static extern int CreateCompatibleBitmap(int hdc,int nWidth, int nHeight);[DllImport("GDI32.dll")]
public static extern int CreateCompatibleDC(int hdc);
[DllImport("GDI32.dll")]
public static extern bool DeleteDC(int hdc);
[DllImport("GDI32.dll")]
public static extern bool DeleteObject(int hObject);
[DllImport("GDI32.dll")]
public static extern int GetDeviceCaps(int hdc,int nIndex);
[DllImport("GDI32.dll")]
public static extern int SelectObject(int hdc,int hgdiobj);
[DllImport("User32.dll")]
public static extern int GetDesktopWindow();
[DllImport("User32.dll")]
public static extern int GetWindowDC(int hWnd);
[DllImport("User32.dll")]
public static extern int ReleaseDC(int hWnd,int hDC);
[DllImport("User32.dll")]
private static extern short GetAsyncKeyState( System.Windows.Forms.Keys vKey);
[DllImport("user32.dll")]
static extern void keybd_event(byte bVk, byte bScan, uint dwFlags,int dwExtraInfo);
public int[] y;
public const byte VK_LWIN = 0x5B;
public const byte VK_M = 0x77;
public const int KEYEVENTF_EXTENDEDKEY = 0x01;
public const int KEYEVENTF_KEYUP = 0x02;
private Thread t;
private int[] lx;
private Bitmap srcBitmap=new Bitmap("\\test.png", true);
private Rectangle[] sectionx;
private Graphics g;
private string startpointPath;
//=====================================
public Animate()
{
this.TopMost=true;
this.ControlBox = false;
//this.BackColor = Color.Black;
this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true);
this.WindowState = FormWindowState.Maximized;
this.BackgroundImage = new Bitmap("\\test.png", true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint |
ControlStyles.UserPaint |
ControlStyles.DoubleBuffer,true);
t = new Thread(new ThreadStart(Run));
t.Start();
}
//===============================
protected override void OnKeyDown(KeyEventArgs k)
{
if (k.KeyCode != Keys.X)
{
t.Abort();
Application.Exit();
startpointPath = Application.ExecutablePath;
Process.Start(startpointPath);
}
}
//==============================
protected override void OnPaint(PaintEventArgs e )
{
sectionx = new Rectangle[] {
new Rectangle(lx[0],lx[0],25,25),
new Rectangle(lx[1],lx[1],25,25),
new Rectangle(lx[2],lx[2],25,25),
new Rectangle(lx[3],lx[3],25,25),
new Rectangle(lx[4],lx[4],25,25),
new Rectangle(lx[5],lx[5],25,25),
new Rectangle(lx[6],lx[6],25,25),
new Rectangle(lx[7],lx[7],25,25),
new Rectangle(lx[8],lx[8],25,25),
new Rectangle(lx[9],lx[9],25,25),
new Rectangle(lx[10],lx[10],25,25),
new Rectangle(lx[11],lx[11],25,25),
new Rectangle(250,50,25,25),
new Rectangle(675,50,25,25),
new Rectangle(575,50,25,25),
new Rectangle(475,50,25,25),
new Rectangle(375,50,25,25),
new Rectangle(275,120,25,25),
new Rectangle(675,120,25,25),
new Rectangle(575,120,25,25),
new Rectangle(475,120,25,25),
new Rectangle(375,120,25,25),
new Rectangle(75,150,25,25),
new Rectangle(175,120,25,25),
new Rectangle(17,63,25,25),
new Rectangle(121,509,25,25),
new Rectangle(41,113,25,25),
new Rectangle(212,12,25,25),
new Rectangle(224,29,25,25),
new Rectangle(329,57,25,25),
new Rectangle(89,20,25,25),
new Rectangle(148,20,25,25),
new Rectangle(186,20,25,25),
new Rectangle(283,20,25,25),
new Rectangle(330,20,25,25),
new Rectangle(389,20,25,25),
new Rectangle(436,20,25,25),
new Rectangle(463,20,25,25),
new Rectangle(517,20,25,25),
new Rectangle(550,20,25,25),
new Rectangle(610,20,25,25),
new Rectangle(731,20,25,25),
new Rectangle(788,20,25,25),
new Rectangle(133,95,25,25),
new Rectangle(190,71,25,25),
new Rectangle(218,99,25,25),
new Rectangle(265,99,25,25),
new Rectangle(336,115,25,25),
new Rectangle(438,78,25,25),
new Rectangle(416,103,25,25),
new Rectangle(520,81,25,25),
new Rectangle(543,104,25,25),
new Rectangle(629,82,25,25),
new Rectangle(727,111,25,25),
new Rectangle(767,70,25,25),
new Rectangle(724,156,25,25),
new Rectangle(664,35,25,25),
new Rectangle(698,11,25,25),
new Rectangle(713,86,25,25),
new Rectangle(50,198,25,25),
new Rectangle(124,196,25,25),
new Rectangle(246,194,25,25),
new Rectangle(270,194,25,25),
new Rectangle(238,162,25,25),
new Rectangle(314,186,25,25),
new Rectangle(314,158,25,25),
new Rectangle(361,180,25,25),
new Rectangle(408,169,25,25),
new Rectangle(459,137,25,25),
new Rectangle(439,196,25,25),
new Rectangle(486,196,25,25),
new Rectangle(534,146,25,25),
new Rectangle(534,205,25,25),
new Rectangle(574,164,25,25),
new Rectangle(614,204,25,25),
new Rectangle(654,163,25,25),
new Rectangle(700,209,25,25)};
g = e.Graphics;
g.FillRectangle(new SolidBrush(Color.Black),lx[0],lx[0],25,25);
g.DrawImage(srcBitmap, lx[0], y[0], sectionx[0], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),lx[1],lx[1],25,25);
g.DrawImage(srcBitmap, lx[1], y[1], sectionx[1], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),lx[2],lx[2],25,25);
g.DrawImage(srcBitmap, lx[2], y[2], sectionx[2], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),lx[3],lx[3],25,25);
g
.DrawImage(srcBitmap, lx[3], y[3], sectionx[3], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),lx[4],lx[4],25,25);
g.DrawImage(srcBitmap, lx[4], y[4], sectionx[4], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),lx[5],lx[5],25,25);
g.DrawImage(srcBitmap, lx[5], y[5], sectionx[5], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),lx[6],lx[6],25,25);
g.DrawImage(srcBitmap, lx[6], y[6], sectionx[6], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),lx[7],lx[7],25,25);
g.DrawImage(srcBitmap, lx[7], y[7], sectionx[7], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),lx[8],lx[8],25,25);
g.DrawImage(srcBitmap, lx[8], y[8], sectionx[8], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),lx[9],lx[9],25,25);
g.DrawImage(srcBitmap, lx[9], y[9], sectionx[9], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),lx[10],lx[10],25,25);
g.DrawImage(srcBitmap, lx[10], y[10], sectionx[10], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),lx[11],lx[11],25,25);
g.DrawImage(srcBitmap, lx[11], y[11], sectionx[11], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),250,50,25,25);
g.DrawImage(srcBitmap, 250, y[12], sectionx[12], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),675,50,25,25);
g.DrawImage(srcBitmap, 675, y[13], sectionx[13], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),575,50,25,25);
g.DrawImage(srcBitmap, 575, y[14], sectionx[14], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),475,50,25,25);
g.DrawImage(srcBitmap, 475, y[15], sectionx[15], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),375,50,25,25);
g.DrawImage(srcBitmap, 375, y[16], sectionx[16], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),275,120,25,25);
g.DrawImage(srcBitmap, 275, y[17], sectionx[17], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),675,120,25,25);
g.DrawImage(srcBitmap, 675, y[18], sectionx[18], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),575,120,25,25);
g.DrawImage(srcBitmap, 575, y[19], sectionx[19], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),475,120,25,25);
g.DrawImage(srcBitmap, 475, y[20], sectionx[20], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),375,120,25,25);
g.DrawImage(srcBitmap, 375, y[21], sectionx[21], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),75,150,25,25);
g.DrawImage(srcBitmap, 75, y[22], sectionx[22], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),175,120,25,25);
g.DrawImage(srcBitmap, 175, y[23], sectionx[23], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),17,63,25,25);
g.DrawImage(srcBitmap, 17, y[24], sectionx[24], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),121,509,25,25);
g.DrawImage(srcBitmap, 121, y[25], sectionx[25], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),41,113,25,25);
g.DrawImage(srcBitmap, 41, y[26], sectionx[26], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),212,12,25,25);
g.DrawImage(srcBitmap, 212, y[27], sectionx[27], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),224,29,25,25);
g.DrawImage(srcBitmap, 224, y[28], sectionx[28], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),329,57,25,25);
g.DrawImage(srcBitmap, 329, y[29], sectionx[29], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),89,20,25,25);
g.DrawImage(srcBitmap, 89, y[30], sectionx[30], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),148,20,25,25);
g.DrawImage(srcBitmap, 148, y[31], sectionx[31], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),186,20,25,25);
g.DrawImage(srcBitmap, 186, y[32], sectionx[32], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),283,20,25,25);
g.DrawImage(srcBitmap, 283, y[33], sectionx[33], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),330,20,25,25);
g.DrawImage(srcBitmap, 330, y[34], sectionx[34], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),389,20,25,25);
g.DrawImage(srcBitmap, 389, y[35], sectionx[35], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),436,20,25,25);
g.DrawImage(srcBitmap, 436, y[36], sectionx[36], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),463,20,25,25);
g.DrawImage(srcBitmap, 463, y[37], sectionx[37], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),517,20,25,25);
g.DrawImage(srcBitmap, 517, y[38], sectionx[38], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),550,20,25,25);
g.DrawImage(srcBitmap, 550, y[39], sectionx[39], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),610,20,25,25);
g.DrawImage(srcBitmap, 610, y[40], sectionx[40], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),731,20,25,25);
g.DrawImage(srcBitmap, 731, y[41], sectionx[41], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),788,20,25,25);
g.DrawImage(srcBitmap, 788, y[42], sectionx[42], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),133,95,25,25);
g.DrawImage(srcBitmap, 133, y[43], sectionx[43], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),190,71,25,25);
g.DrawImage(srcBitmap, 190, y[44], sectionx[44], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),218,99,25,25);
g.DrawImage(srcBitmap, 218, y[45], sectionx[45], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),265,99,25,25);
g.DrawImage(srcBitmap, 265, y[46], sectionx[46], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),336,115,25,25);
g.DrawImage(srcBitmap, 336, y[47], sectionx[47], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),438,78,25,25);
g.DrawImage(srcBitmap, 438, y[48], sectionx[48], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),461,103,25,25);
g.DrawImage(srcBitmap, 461, y[49], sectionx[49], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),520,81,25,25);
g.DrawImage(srcBitmap, 520, y[50], sectionx[50], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),543,104,25,25);
g.DrawImage(srcBitmap, 543, y[51], sectionx[51], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),629,82,25,25);
g.DrawImage(srcBitmap, 629, y[52], sectionx[52], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),727,111,25,25);
g.DrawImage(srcBitmap, 727, y[53], sectionx[53], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),767,70,25,25);
g.DrawImage(srcBitmap, 767, y[54], sectionx[54], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),724,156,25,25);
g.DrawImage(srcBitmap, 724, y[55], sectionx[55], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),664,35,25,25);
g.DrawImage(srcBitmap, 664, y[56], sectionx[56], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),698,11,25,25);
g.DrawImage(srcBitmap, 698, y[57], sectionx[57], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),713,86,25,25);
g.DrawImage(srcBitmap, 713, y[58], sectionx[58], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),50,198,25,25);
g.DrawImage(srcBitmap, 50, y[59], sectionx[59], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),124,196,25,25);
g.DrawImage(srcBitmap, 124, y[60], sectionx[60], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),246,194,25,25);
g.DrawImage(srcBitmap, 246, y[61], sectionx[61], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),270,194,25,25);
g.DrawImage(srcBitmap, 270, y[62], sectionx[62], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),238,162,25,25);
g.DrawImage(srcBitmap, 238, y[63], sectionx[63], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),314,186,25,25);
g.DrawImage(srcBitmap, 314, y[64], sectionx[64], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),314,158,25,25);
g.DrawImage(srcBitmap, 314, y[65], sectionx[65], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),361,180,25,25);
g.DrawImage(srcBitmap, 361, y[66], sectionx[66], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),408,169,25,25);
g.DrawImage(srcBitmap, 361, y[67], sectionx[67], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),459,137,25,25);
g.DrawImage(srcBitmap, 459, y[68], sectionx[68], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),439,196,25,25);
g.DrawImage(srcBitmap, 439, y[69], sectionx[69], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),486,196,25,25);
g.DrawImage(srcBitmap, 486, y[70], sectionx[70], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),534,146,25,25);
g.DrawImage(srcBitmap, 534, y[71], sectionx[71], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),534,205,25,25);
g.DrawImage(srcBitmap, 534, y[72], sectionx[72], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),574,164,25,25);
g.DrawImage(srcBitmap, 574, y[73], sectionx[73], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),614,204,25,25);
g.DrawImage(srcBitmap, 614, y[74], sectionx[74], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),654,163,25,25);
g.DrawImage(srcBitmap, 654, y[75], sectionx[75], GraphicsUnit.Pixel);
g.FillRectangle(new SolidBrush(Color.Black),700,200,25,25);
g.DrawImage(srcBitmap, 700, y[76], sectionx[76], GraphicsUnit.Pixel);
}
//=============================
public void Run()
{
lx = new int[77];
y=new int[77];
y[0]=50;
lx[0]=50;
y[1]=369;
lx[1]=369;
y[2]=67;
lx[2]=67;
y[3]=408;
lx[3]=408;
y[4]=10;
lx[4]=10;
y[5]=177;
lx[5]=177;
y[6]=147;
lx[6]=147;
y[7]=347;
lx[7]=347;
y[8]=33;
lx[8]=33;
y[9]=180;
lx[9]=180;
y[10]=500;
lx[10]=550;
y[11]=547;
lx[11]=547;
y[12]=50;
y[13]=50;
y[14]=50;
y[15]=50;
y[16]=50;
y[17]=120;
y[18]=120;
y[19]=120;
y[20]=120;
y[21]=120;
y[22]=150;
y[23]=120;
y[24]=63;
y[25]=509;
y[26]=113;
y[27]=12;
y[28]=29;
y[29]=57;
y[30]=20;
y[31]=20;
y[32]=20;
y[33]=20;
y[34]=20;
y[35]=20;
y[36]=20;
y[37]=20;
y[38]=20;
y[39]=20;
y[40]=20;
y[41]=20;
y[42]=20;
y[43]=95;
y[44]=71;
y[45]=99;
y[46]=99;
y[47]=115;
y[48]=78;
y[49]=103;
y[50]=81;
y[51]=104;
y[52]=82;
y[53]=111;
y[54]=70;
y[55]=156;
y[56]=35;
y[57]=11;
y[58]=86;
y[59]=198;
y[60]=196;
y[61]=194;
y[62]=194;
y[63]=162;
y[64]=186;
y[65]=158;
y[66]=180;
y[67]=169;
y[68]=137;
y[69]=196;
y[70]=196;
y[71]=146;
y[72]=205;
y[73]=164;
y[74]=204;
y[75]=163;
y[76]=209;
while (true)
{
if(y[0]<=560)
{
y[0]+=3;
}
if(y[1]<=557)
{
y[1]+=4;
}
if(y[2]<=580)
{
y[2]+=2;
}
if(y[3]<=583)
{
y[3]+=5;
}
if(y[4]<=561)
{
y[4]+=4;
}
if(y[5]<=563)
{
y[5]+=4;
}
if(y[6]<=563)
{
y[6]+=2;
}
if(y[7]<=566)
{
y[7]+=15;
}
if(y[8]<=565)
{
y[8]+=3;
}
if(y[9]<=550)
{
y[9]+=2;
}
if(y[10]<=565)
{
y[10]+=5;
}
if(y[11]<=563)
{
y[11]+=3;
}
if(y[12]<=562)
{
y[12]+=3;
}
if(y[13]<=561)
{
y[13]+=6;
}
if(y[14]<=558)
{
y[14]+=4;
}
if(y[15]<=545)
{
y[15]+=2;
}
if(y[16]<=562)
{
y[16]+=3;
}
if(y[17]<=552)
{
y[17]+=4;
}
if(y[18]<=556)
{
y[18]+=4;
}
if(y[19]<=552)
{
y[19]+=2;
}
if(y[20]<=551)
{
y[20]+=4;
}
if(y[21]<=540)
{
y[21]+=3;
}
if(y[22]<=570)
{
y[22]+=2;
}
if(y[23]<=555)
{
y[23]+=5;
}
if(y[24]<=572)
{
y[24]+=5;
}
if(y[25]<=580)
{
y[25]+=8;
}
if(y[26]<=575)
{
y[26]+=4;
}
if(y[27]<=575)
{
y[27]+=3;
}
if(y[28]<=572)
{
y[28]+=2;
}
if(y[29]<=564)
{
y[29]+=4;
}
if(y[30]<=573)
{
y[30]+=5;
}
if(y[31]<=570)
{
y[31]+=3;
}
if(y[32]<=554)
{
y[32]+=2;
}
if(y[33]<=577)
{
y[33]+=2;
}
if(y[34]<=557)
{
y[34]+=4;
}
if(y[35]<=564)
{
y[35]+=6;
}
if(y[36]<=560)
{
y[36]+=2;
}
if(y[37]<=554)
{
y[37]+=4;
}
if(y[38]<=558)
{
y[38]+=3;
}
if(y[39]<=564)
{
y[39]+=5;
}
if(y[40]<=544)
{
y[40]+=3;
}
if(y[41]<=554)
{
y[41]+=2;
}
if(y[42]<=564)
{
y[42]+=4;
}
if(y[43]<=564)
{
y[43]+=8;
}
if(y[44]<=554)
{
y[44]+=7;
}
if(y[45]<=550)
{
y[45]+=9;
}
if(y[46]<=564)
{
y[46]+=8;
}
if(y[47]<=564)
{
y[47]+=9;
}
if(y[48]<=564)
{
y[48]+=7;
}
if(y[49]<=564)
{
y[49]+=8;
}
if(y[50]<=564)
{
y[50]+=9;
}
if(y[51]<=564)
{
y[51]+=7;
}
if(y[52]<=564)
{
y[52]+=7;
}
if(y[53]<=564)
{
y[53]+=9;
}
if(y[54]<=564)
{
y[54]+=8;
}
if(y[55]<=564)
{
y[55]+=7;
}
if(y[56]<=564)
{
y[56]+=8;
}
if(y[57]<=564)
{
y[57]+=9;
}
if(y[58]<=564)
{
y[58]+=9;
}
if(y[59]<=545)
{
y[59]+=3;
}
if(y[60]<=545)
{
y[61]+=4;
}
if(y[59]<=545)
{
y[61]+=4;
}
if(y[62]<=545)
{
y[62]+=3;
}
if(y[63]<=545)
{
y[63]+=5;
}
if(y[64]<=545)
{
y[64]+=3;
}
if(y[65]<=545)
{
y[65]+=4;
}
if(y[66]<=545)
{
y[66]+=3;
}
if(y[67]<=545)
{
y[67]+=4;
}
if(y[68]<=545)
{
y[68]+=5;
}
if(y[69]<=545)
{
y[69]+=4;
}
if(y[70]<=545)
{
y[70]+=3;
}
if(y[71]<=545)
{
y[71]+=5;
}
if(y[72]<=545)
{
y[72]+=3;
}
if(y[73]<=545)
{
y[73]+=4;
}
if(y[74]<=545)
{
y[74]+=5;
}
if(y[75]<=545)
{
y[75]+=3;
}
if(y[76]<=545)
{
y[76]+=5;
}
Invalidate();
Thread.Sleep(10);
}
}
//============================
public static void Main( )
{
Thread.Sleep(10000);
int hdcSrc = GetWindowDC(GetDesktopWindow()),
hdcDest = CreateCompatibleDC(hdcSrc),
hBitmap = CreateCompatibleBitmap(hdcSrc,GetDeviceCaps(hdcSrc,8),GetDeviceCaps(hdcSrc,10));
SelectObject(hdcDest,hBitmap);
BitBlt(hdcDest,0,0,GetDeviceCaps(hdcSrc,8),
GetDeviceCaps(hdcSrc,10),hdcSrc,0,0,0x00CC0020);
Bitmap image =new Bitmap(Image.FromHbitmap(new IntPtr(hBitmap)),
Image.FromHbitmap(new IntPtr(hBitmap)).Width,
Image.FromHbitmap(new IntPtr(hBitmap)).Height);
image.Save("\\test.png",ImageFormat.Bmp);
Thread.Sleep(50);
Application.Run(new Animate());
}
}
//==============================
ctrl alt del to stop program...