From ca958084a2d58546ff2f5fb091311b9624eb933c Mon Sep 17 00:00:00 2001 From: Alee Date: Sun, 10 Feb 2019 19:35:24 -0500 Subject: more stuff --- BSODPrank/BSOD.cs | 2 +- BSODPrank/BSODPrank.csproj | 10 ++++ BSODPrank/Boot.cs | 15 ++++- BSODPrank/Jumpscare.Designer.cs | 66 ++++++++++++++++++++++ BSODPrank/Jumpscare.cs | 37 +++++++++++++ BSODPrank/Jumpscare.resx | 120 ++++++++++++++++++++++++++++++++++++++++ appveyor.yml | 4 +- 7 files changed, 251 insertions(+), 3 deletions(-) create mode 100644 BSODPrank/Jumpscare.Designer.cs create mode 100644 BSODPrank/Jumpscare.cs create mode 100644 BSODPrank/Jumpscare.resx diff --git a/BSODPrank/BSOD.cs b/BSODPrank/BSOD.cs index 427121f..a90e60b 100644 --- a/BSODPrank/BSOD.cs +++ b/BSODPrank/BSOD.cs @@ -31,7 +31,7 @@ namespace BSODPrank boot.Show(); this.Hide(); } - + private void Form1_KeyDown(object sender, KeyEventArgs e) { System.IO.Stream str = Properties.Resources.bleep; diff --git a/BSODPrank/BSODPrank.csproj b/BSODPrank/BSODPrank.csproj index fc4f65a..db85883 100644 --- a/BSODPrank/BSODPrank.csproj +++ b/BSODPrank/BSODPrank.csproj @@ -21,6 +21,7 @@ DEBUG;TRACE prompt 4 + false AnyCPU @@ -57,6 +58,12 @@ BSOD.cs + + Form + + + Jumpscare.cs + @@ -65,6 +72,9 @@ BSOD.cs + + Jumpscare.cs + ResXFileCodeGenerator Resources.Designer.cs diff --git a/BSODPrank/Boot.cs b/BSODPrank/Boot.cs index a42bcff..e570220 100644 --- a/BSODPrank/Boot.cs +++ b/BSODPrank/Boot.cs @@ -17,10 +17,23 @@ namespace BSODPrank InitializeComponent(); } + private async void Boot_Load(object sender, EventArgs e) { + //SystemInformation si = new SystemInformation(); + txtBoot.AppendText("[SYSTEM] Starting up computer..." + Environment.NewLine); + await Task.Delay(2000); + txtBoot.AppendText("[SYSTEM] Loading hard drive..." + Environment.NewLine); + await Task.Delay(2000); + txtBoot.AppendText("[SYSTEM ERROR] Cannot find an Operating System..." + Environment.NewLine); + await Task.Delay(2000); + txtBoot.AppendText("[SYSTEM ERROR] Any Operating System is not detected in the hard drive..." + Environment.NewLine); + await Task.Delay(2000); + txtBoot.AppendText("[SYSTEM] Attempting to boot..." + Environment.NewLine); await Task.Delay(5000); - txtBoot.AppendText("[SYSTEM ERROR] BIOS Cannot Display." + Environment.NewLine); + Jumpscare jumpscare = new Jumpscare(); + jumpscare.Show(); + this.Hide(); } private void Boot_KeyDown(object sender, KeyEventArgs e) diff --git a/BSODPrank/Jumpscare.Designer.cs b/BSODPrank/Jumpscare.Designer.cs new file mode 100644 index 0000000..81711b0 --- /dev/null +++ b/BSODPrank/Jumpscare.Designer.cs @@ -0,0 +1,66 @@ +namespace BSODPrank +{ + partial class Jumpscare + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.tmpLabel = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // tmpLabel + // + this.tmpLabel.AutoSize = true; + this.tmpLabel.Font = new System.Drawing.Font("Comic Sans MS", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tmpLabel.ForeColor = System.Drawing.Color.White; + this.tmpLabel.Location = new System.Drawing.Point(55, 101); + this.tmpLabel.Name = "tmpLabel"; + this.tmpLabel.Size = new System.Drawing.Size(345, 204); + this.tmpLabel.TabIndex = 0; + this.tmpLabel.Text = "AHHH SCARY!!!!!\r\n(Just kidding the \r\nreal one will \r\nbe there soon :P)\r\n"; + // + // Jumpscare + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(255))))); + this.ClientSize = new System.Drawing.Size(488, 397); + this.Controls.Add(this.tmpLabel); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Name = "Jumpscare"; + this.Text = "Jumpscare"; + this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + this.Load += new System.EventHandler(this.Jumpscare_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label tmpLabel; + } +} \ No newline at end of file diff --git a/BSODPrank/Jumpscare.cs b/BSODPrank/Jumpscare.cs new file mode 100644 index 0000000..1205b1b --- /dev/null +++ b/BSODPrank/Jumpscare.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Diagnostics; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace BSODPrank +{ + public partial class Jumpscare : Form + { + public Jumpscare() + { + InitializeComponent(); + } + + private async void Jumpscare_Load(object sender, EventArgs e) + { + await Task.Delay(5000); + Process[] runningProcesses = Process.GetProcesses(); + foreach (Process process in runningProcesses) + { + foreach (ProcessModule module in process.Modules) + { + if (module.FileName.Equals("BSODPrank.exe")) + { + process.Kill(); + } + } + } + } + } +} diff --git a/BSODPrank/Jumpscare.resx b/BSODPrank/Jumpscare.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/BSODPrank/Jumpscare.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index 68414e8..8583629 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -5,7 +5,8 @@ before_build: - nuget restore build: - project: BSODPrank.sln + verbosity: detailed + project: BSODPrank.sln after_build: - cmd: 7z a -tzip "BSODPrank/bin/Debug/BSODPrank.zip" "BSODPrank/bin/Debug/*" @@ -23,6 +24,7 @@ deploy: artifact: /.*\.zip/ draft: false prerelease: true + force_update: true tag: continuous on: appveyor_repo_tag: true -- cgit v1.2.3