Here is a mockup of mine. Mine is backwards tho, showing that if a process is not open, then text displaying that the game is not open pops up, but if the process is open, then it displays a different type of text showing what to do.
(ITS A MOCKUP OF A RUST CHEAT I WAS THINKING OF WORKING ON, SO ITS REALLY SHITTY BUT PERFECT TO EXPLAIN HERE)
Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using System.ComponentModel;
namespace Rustcheat
{
class Program
{
static void Main(string[] args)
{
string process = "RustClient";
Process[] pname = Process.GetProcessesByName(process);
if (pname.Length != 0)
{
Console.WriteLine("Press Q to inject the cheat!");
string key = Console.ReadKey().Key.ToString();
if (key.ToUpper() == "Q")
Console.Clear();
Console.WriteLine("Cheat is Injected! Please wait until you hear the beep!");
System.Threading.Thread.Sleep(5000);
Console.Beep();
Console.Clear();
Console.WriteLine("You can now close the cheat");
System.Threading.Thread.Sleep(100);
Console.WriteLine("Press the MiddleMouse button to open the menu!");
Console.Read();
}
else
{
Console.WriteLine("Rust is NOT OPEN! Please open RUST and reopen the cheat!");
Console.Read();
}
}
}
}