Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Diagnostics;
- using System.Windows.Forms;
- namespace Synapse_X
- {
- public partial class Options : Form
- {
- public Options()
- {
- InitializeComponent();
- }
- bool attach;
- private void Button4_Click(object sender, EventArgs e)
- {
- Environment.Exit(0);
- }
- private void Button1_Click(object sender, EventArgs e)
- {
- this.WindowState = FormWindowState.Minimized;
- }
- private void CheckBox1_CheckedChanged(object sender, EventArgs e)
- {
- if (checkBox1.Checked)
- {
- this.TopMost = true;
- }
- else
- {
- this.TopMost = false;
- }
- }
- private void Timer1_Tick(object sender, EventArgs e)
- {
- }
- private void Launcher2_Tick(object sender, EventArgs e)
- {
- }
- private void Timer3_Tick(object sender, EventArgs e)
- {
- if (attach)
- {
- Process[] roblox = Process.GetProcessesByName("RobloxPlayerBeta.exe");
- if (roblox.Length > 0)
- {
- MessageBox.Show("WORKS");
- attach = false;
- }
- else
- {
- timer4.Start();
- attach = true;
- }
- }
- else
- {
- timer3.Stop();
- timer4.Stop();
- }
- }
- private void Timer4_Tick(object sender, EventArgs e)
- {
- if (attach)
- {
- Process[] roblox = Process.GetProcessesByName("RobloxPlayerBeta.exe");
- if (roblox.Length > 0)
- {
- MessageBox.Show("WORKS");
- attach = false;
- }
- else
- {
- timer3.Start();
- attach = true;
- }
- }
- else
- {
- timer3.Stop();
- timer4.Stop();
- }
- }
- private void CheckBox2_CheckedChanged(object sender, EventArgs e)
- {
- if (checkBox2.Checked)
- {
- timer1.Start();
- }
- else
- {
- timer1.Stop();
- timer2.Stop();
- }
- }
- private void Timer1_Tick_1(object sender, EventArgs e)
- {
- if (!NamedPipes.NamedPipeExist(NamedPipes.luapipename))
- {
- Process[] roblox = Process.GetProcessesByName("RobloxPlayerBeta.exe");
- if(roblox.Length > 0)
- {
- timer3.Start();
- }
- else
- {
- timer2.Start();
- }
- }
- else if (NamedPipes.NamedPipeExist(NamedPipes.luapipename))
- {
- attach = false;
- }
- }
- private void Timer2_Tick(object sender, EventArgs e)
- {
- if (!NamedPipes.NamedPipeExist(NamedPipes.luapipename))
- {
- Process[] roblox = Process.GetProcessesByName("RobloxPlayerBeta.exe");
- if (roblox.Length > 0)
- {
- timer3.Start();
- }
- else
- {
- timer1.Start();
- }
- }
- else if (NamedPipes.NamedPipeExist(NamedPipes.luapipename))
- {
- attach = false;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement