-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d838ba1
commit 6e40cd9
Showing
7 changed files
with
407 additions
and
418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1"/> | ||
</startup> | ||
</configuration> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1"/> | ||
</startup> | ||
</configuration> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,70 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Data; | ||
using System.Drawing; | ||
using System.Linq; | ||
using System.Text; | ||
using LogSystem; | ||
using System.Diagnostics; | ||
using System.Threading; | ||
using System.Windows.Forms; | ||
using System.Runtime.InteropServices; | ||
using System.IO; | ||
using System.Media; | ||
|
||
namespace VapeV114514 | ||
{ | ||
public partial class Form1 : Form | ||
{ | ||
public Form1() | ||
{ | ||
InitializeComponent(); | ||
CheckForIllegalCrossThreadCalls = false; | ||
} | ||
Log log = new Log(); | ||
SoundPlayer sp = new SoundPlayer(Properties.Resource.g); | ||
private void button1_Click(object sender, EventArgs e) | ||
{ | ||
Thread th = new Thread(progress); | ||
th.Start(); | ||
} | ||
public bool FindThread(string threadName) | ||
{ | ||
Process[] processList = Process.GetProcesses(); | ||
foreach (Process process in processList) | ||
{ | ||
if (process.ProcessName.ToLower() == threadName.ToLower()) | ||
{ | ||
return true; | ||
} | ||
} | ||
return false; | ||
} | ||
|
||
private void progress() | ||
{ | ||
button1.Enabled = false; | ||
button1.Text = "Injecting..."; | ||
int i = 0; | ||
while (true) | ||
{ | ||
progressBar1.Value = i; | ||
i++; | ||
Thread.Sleep(100); | ||
if (progressBar1.Value >= 100) | ||
{ | ||
OpenMedia(); | ||
log.Error("2333333333333333333333333333333333333"); | ||
break; | ||
} | ||
} | ||
} | ||
void OpenMedia() | ||
{ | ||
sp.PlayLooping(); | ||
} | ||
|
||
void CloseMedia() | ||
{ | ||
sp.Stop(); | ||
} | ||
|
||
private void Form1_FormClosed(object sender, FormClosedEventArgs e) | ||
{ | ||
CloseMedia(); | ||
} | ||
} | ||
} | ||
using System; | ||
using LogSystem; | ||
using System.Diagnostics; | ||
using System.Threading; | ||
using System.Windows.Forms; | ||
using System.Media; | ||
|
||
namespace VapeV114514 | ||
{ | ||
public partial class Form1 : Form | ||
{ | ||
public Form1() | ||
{ | ||
InitializeComponent(); | ||
CheckForIllegalCrossThreadCalls = false; | ||
} | ||
Log log = new Log(); | ||
SoundPlayer sp = new SoundPlayer(Properties.Resource.g); | ||
private void button1_Click(object sender, EventArgs e) | ||
{ | ||
Thread th = new Thread(progress); | ||
th.Start(); | ||
} | ||
public bool FindThread(string threadName) | ||
{ | ||
Process[] processList = Process.GetProcesses(); | ||
foreach (Process process in processList) | ||
{ | ||
if (process.ProcessName.ToLower() == threadName.ToLower()) | ||
{ | ||
return true; | ||
} | ||
} | ||
return false; | ||
} | ||
|
||
private void progress() | ||
{ | ||
button1.Enabled = false; | ||
button1.Text = "Injecting..."; | ||
int i = 0; | ||
while (true) | ||
{ | ||
progressBar1.Value = i; | ||
i++; | ||
Thread.Sleep(100); | ||
if (progressBar1.Value >= 100) | ||
{ | ||
OpenMedia(); | ||
log.Error("2333333333333333333333333333333333333"); | ||
break; | ||
} | ||
} | ||
} | ||
void OpenMedia() | ||
{ | ||
sp.PlayLooping(); | ||
} | ||
|
||
void CloseMedia() | ||
{ | ||
sp.Stop(); | ||
} | ||
|
||
private void Form1_FormClosed(object sender, FormClosedEventArgs e) | ||
{ | ||
CloseMedia(); | ||
} | ||
} | ||
} |
Oops, something went wrong.