private void btnStartTriggerbot_Click(object sender, EventArgs e) { if (this.comboBoxTriggerKey.Text == "Left Control") { MainMenu.lineChanger("KeyWait, LCtrl, D", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk"), 4); this.triggerbot = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk")); } else if (this.comboBoxTriggerKey.Text == "Right Mouse Button") { MainMenu.lineChanger("KeyWait, RButton, D", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk"), 4); this.triggerbot = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk")); } else if (this.comboBoxTriggerKey.Text == "Left Alt") { MainMenu.lineChanger("KeyWait, LAlt, D", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk"), 4); this.triggerbot = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk")); } else if (this.comboBoxTriggerKey.Text == "Left Shift") { MainMenu.lineChanger("KeyWait, LShift, D", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk"), 4); this.triggerbot = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk")); } else if (this.comboBoxTriggerKey.Text == "Mouse Button 4") { MainMenu.lineChanger("KeyWait, XButton1, D", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk"), 4); this.triggerbot = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk")); } else if (this.comboBoxTriggerKey.Text == "Mouse Button 5") { MainMenu.lineChanger("KeyWait, XButton2, D", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk"), 4); this.triggerbot = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk")); } else if (this.comboBoxTriggerKey.Text == "X") { MainMenu.lineChanger("KeyWait, X, D", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk"), 4); this.triggerbot = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk")); } else if (this.comboBoxTriggerKey.Text == "C") { MainMenu.lineChanger("KeyWait, C, D", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk"), 4); this.triggerbot = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk")); } this.btnTriggerbotStart.Enabled = false; this.btnTriggerbotStop.Enabled = true; this.panelTriggerbot.BackColor = Color.Lime; }
private void KHook_KeyCombinationPressed(Key keyPressed) { if (keyPressed == Key.F7 && this.btnBhopStart.Enabled) { this.bhop = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\bhop.ahk")); this.btnBhopStart.Enabled = false; this.btnBhopStop.Enabled = true; this.btnBhopPause.Enabled = true; this.panelBhop.BackColor = Color.Lime; } if (keyPressed == Key.F8 && this.btnBhopStop.Enabled) { this.bhop.Kill(); this.btnBhopStop.Enabled = false; this.btnBhopStart.Enabled = true; this.btnBhopPause.Enabled = false; this.panelBhop.BackColor = Color.Red; } if (keyPressed == Key.F1 && !this.btnBhopStart.Enabled) { if (this.pause == 0) { this.panelBhop.BackColor = Color.RoyalBlue; ++this.pause; this.btnBhopPause.Text = "Continue (F1)"; } else { this.panelBhop.BackColor = Color.Lime; --this.pause; this.btnBhopPause.Text = "Pause (F1)"; } } if (keyPressed == Key.F5 && this.btnTriggerbotStart.Enabled) { if (this.comboBoxTriggerKey.Text == "Left Control") { MainMenu.lineChanger("KeyWait, LCtrl, D", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk"), 4); this.triggerbot = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk")); } else if (this.comboBoxTriggerKey.Text == "Right Mouse Button") { MainMenu.lineChanger("KeyWait, RButton, D", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk"), 4); this.triggerbot = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk")); } else if (this.comboBoxTriggerKey.Text == "Left Alt") { MainMenu.lineChanger("KeyWait, LAlt, D", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk"), 4); this.triggerbot = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk")); } else if (this.comboBoxTriggerKey.Text == "Left Shift") { MainMenu.lineChanger("KeyWait, LShift, D", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk"), 4); this.triggerbot = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk")); } else if (this.comboBoxTriggerKey.Text == "Mouse Button 4") { MainMenu.lineChanger("KeyWait, XButton1, D", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk"), 4); this.triggerbot = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk")); } else if (this.comboBoxTriggerKey.Text == "Mouse Button 5") { MainMenu.lineChanger("KeyWait, XButton2, D", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk"), 4); this.triggerbot = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk")); } else if (this.comboBoxTriggerKey.Text == "X") { MainMenu.lineChanger("KeyWait, X, D", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk"), 4); this.triggerbot = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk")); } else if (this.comboBoxTriggerKey.Text == "C") { MainMenu.lineChanger("KeyWait, C, D", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk"), 4); this.triggerbot = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\trigger.ahk")); } this.btnTriggerbotStart.Enabled = false; this.btnTriggerbotStop.Enabled = true; this.panelTriggerbot.BackColor = Color.Lime; } if (keyPressed != Key.F6 || !this.btnTriggerbotStop.Enabled) { return; } this.triggerbot.Kill(); this.btnTriggerbotStop.Enabled = false; this.btnTriggerbotStart.Enabled = true; this.panelTriggerbot.BackColor = Color.Red; }
private void btnAASStart_Click(object sender, EventArgs e) { if (this.comboBoxAgents.Text == "Choose Agent..") { int num = (int)MessageBox.Show("Select an Agent first!", "ERROR!"); } else if (this.comboBoxAgents.Text == "Breach") { MainMenu.lineChanger("MouseClick, left, 1150, 968", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk"), 14); this.aas = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk")); } else if (this.comboBoxAgents.Text == "Cypher") { MainMenu.lineChanger("MouseClick, left, 1240, 968", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk"), 14); this.aas = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk")); } else if (this.comboBoxAgents.Text == "Jett") { MainMenu.lineChanger("MouseClick, left, 587, 968", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk"), 14); this.aas = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk")); } else if (this.comboBoxAgents.Text == "Phoenix") { MainMenu.lineChanger("MouseClick, left, 680, 968", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk"), 14); this.aas = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk")); } else if (this.comboBoxAgents.Text == "Sage") { MainMenu.lineChanger("MouseClick, left, 870, 968", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk"), 14); this.aas = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk")); } else if (this.comboBoxAgents.Text == "Sova") { MainMenu.lineChanger("MouseClick, left, 960, 968", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk"), 14); this.aas = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk")); } else if (this.comboBoxAgents.Text == "Viper") { MainMenu.lineChanger("MouseClick, left, 1057, 968", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk"), 14); this.aas = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk")); } else if (this.comboBoxAgents.Text == "Brimstone") { MainMenu.lineChanger("MouseClick, left, 493, 968", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk"), 14); this.aas = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk")); } else if (this.comboBoxAgents.Text == "Omen") { MainMenu.lineChanger("MouseClick, left, 1337, 968", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk"), 14); this.aas = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk")); } else if (this.comboBoxAgents.Text == "Raze") { MainMenu.lineChanger("MouseClick, left, 1435, 968", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk"), 14); this.aas = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk")); } else { if (!(this.comboBoxAgents.Text == "Reyna")) { return; } MainMenu.lineChanger("MouseClick, left, 775, 968", Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk"), 14); this.aas = Process.Start(Environment.ExpandEnvironmentVariables("%AppData%\\ValorantTrainer by HvRibbecK\\aas.ahk")); } }