private void LibraryAttachEvent(SxLibBase.SynAttachEvents Event, object whatever) { // This is basically the switch that'll make the label change according to the status of Synapse is in while injecting. switch (Event) { case SxLibBase.SynAttachEvents.CHECKING: this.AttachingLabel.ForeColor = Color.FromArgb(240, 240, 240); this.AttachingLabel.Text = "Checking..."; return; case SxLibBase.SynAttachEvents.INJECTING: this.AttachingLabel.Text = "Injecting..."; return; case SxLibBase.SynAttachEvents.CHECKING_WHITELIST: this.AttachingLabel.Text = "Checking whitelist..."; return; case SxLibBase.SynAttachEvents.SCANNING: this.AttachingLabel.Text = "Scanning..."; return; case SxLibBase.SynAttachEvents.READY: this.AttachingLabel.ForeColor = Color.FromArgb(0, 255, 0); this.AttachingLabel.Text = "Ready!"; this.Attached = true; return; case SxLibBase.SynAttachEvents.FAILED_TO_ATTACH: this.AttachingLabel.ForeColor = Color.FromArgb(255, 0, 0); this.AttachingLabel.Text = "Error! Failed to attach!"; return; case SxLibBase.SynAttachEvents.FAILED_TO_FIND: this.AttachingLabel.ForeColor = Color.FromArgb(255, 0, 0); this.AttachingLabel.Text = "Error! Failed to find Roblox!"; return; case SxLibBase.SynAttachEvents.NOT_RUNNING_LATEST_VER_UPDATING: this.AttachingLabel.ForeColor = Color.FromArgb(255, 0, 0); this.AttachingLabel.Text = "Not running latest version! Updating..."; return; case SxLibBase.SynAttachEvents.NOT_INJECTED: break; case SxLibBase.SynAttachEvents.ALREADY_INJECTED: this.AttachingLabel.ForeColor = Color.FromArgb(255, 0, 0); this.AttachingLabel.Text = "Error! Already injected!"; break; default: return; } }
private void SxAttachEv(SxLibBase.SynAttachEvents Event, object whatever) { // This is basically the switch that'll make the label change according to the status of Synapse is in while injecting. switch (Event) { case SxLibBase.SynAttachEvents.CHECKING: label1.Text = "Checking..."; return; case SxLibBase.SynAttachEvents.INJECTING: label1.Text = "Injecting..."; return; case SxLibBase.SynAttachEvents.CHECKING_WHITELIST: label1.Text = "Checking Whitelist..."; return; case SxLibBase.SynAttachEvents.SCANNING: label1.Text = "Scanning..."; return; case SxLibBase.SynAttachEvents.READY: label1.Text = "Ready!"; this.Attached = true; return; case SxLibBase.SynAttachEvents.FAILED_TO_ATTACH: label1.Text = "Failed to attach"; return; case SxLibBase.SynAttachEvents.FAILED_TO_FIND: label1.Text = "Failed to find roblox!"; return; case SxLibBase.SynAttachEvents.NOT_RUNNING_LATEST_VER_UPDATING: label1.Text = "Updating..."; return; case SxLibBase.SynAttachEvents.NOT_INJECTED: label1.Text = "Not injected!"; break; case SxLibBase.SynAttachEvents.ALREADY_INJECTED: label1.Text = "Already Injected!"; break; default: return; } }
private void SynAttachEvent(SxLibBase.SynAttachEvents Event, object Param) { switch (Event) { case SxLibBase.SynAttachEvents.INJECTING: this.AttachingLabel.ForeColor = Color.FromArgb(0, 0, 0); this.AttachingLabel.Text = "Injecting..."; return; case SxLibBase.SynAttachEvents.READY: this.AttachingLabel.ForeColor = Color.FromArgb(0, 255, 0); this.AttachingLabel.Text = "Online"; return; } }
void Attacher(SxLibBase.SynAttachEvents Event) { switch (Event) { case SxLibBase.SynAttachEvents.READY: { TUpdate("Injected"); Tools.Enabled = true; RUpdate(); break; } case SxLibBase.SynAttachEvents.FAILED_TO_FIND: { TUpdate("Roblox not found"); Tools.Enabled = true; RUpdate(); break; } case SxLibBase.SynAttachEvents.SCANNING: { TUpdate("Scanning"); break; } case SxLibBase.SynAttachEvents.INJECTING: { TUpdate("Injecting"); break; } case SxLibBase.SynAttachEvents.CHECKING_WHITELIST: { TUpdate("Checking whitelist"); break; } case SxLibBase.SynAttachEvents.CHECKING: { TUpdate("Checking Roblox"); break; } case SxLibBase.SynAttachEvents.NOT_RUNNING_LATEST_VER: { TUpdate("SynX UI is outdated"); Tools.Enabled = true; RUpdate(); break; } case SxLibBase.SynAttachEvents.ALREADY_INJECTED: { TUpdate("Already Injected"); Tools.Enabled = true; RUpdate(); break; } case SxLibBase.SynAttachEvents.NOT_INJECTED: { TUpdate("Inject first"); Tools.Enabled = true; RUpdate(); break; } case SxLibBase.SynAttachEvents.PROC_DELETION: { TUpdate("Disconnected from Roblox"); RUpdate(); break; } } }
private static void Attacher(SxLibBase.SynAttachEvents Event, object bla) { switch (Event) { case SxLibBase.SynAttachEvents.READY: { attached = true; Console.WriteLine("[S^X] Synapse X has attached, you may now start executing!"); break; } case SxLibBase.SynAttachEvents.FAILED_TO_FIND: { attached = false; Console.WriteLine("[S^X] Synapse X has failed to find Roblox!"); break; } case SxLibBase.SynAttachEvents.SCANNING: { Console.WriteLine("[S^X] Scanning..."); break; } case SxLibBase.SynAttachEvents.INJECTING: { Console.WriteLine("[S^X] Injecting..."); break; } case SxLibBase.SynAttachEvents.CHECKING_WHITELIST: { Console.WriteLine("[S^X] Checking whitelist..."); break; } case SxLibBase.SynAttachEvents.CHECKING: { Console.WriteLine("[S^X] Checking..."); break; } case SxLibBase.SynAttachEvents.PROC_DELETION: { attached = false; Console.WriteLine("[S^X] Synapse X has disconnected from Roblox!"); break; } case SxLibBase.SynAttachEvents.PROC_CREATION: { if (autoAttach == true) { Console.WriteLine("[S^X] Starting auto attach process..."); } break; } default: { break; } } }