private void charactername_tbx_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (charactername_tbx.SelectedIndex != -1) { if (client_version_tbx.SelectedItem.ToString() == "x64") { ProcessReader.OpenProcxss(Wildstar[charactername_tbx.SelectedIndex].Id); ProcessReader.base_adress = Wildstar[charactername_tbx.SelectedIndex].MainModule.BaseAddress.ToInt64(); hwnd = Wildstar[charactername_tbx.SelectedIndex].MainWindowHandle; // Give the exitwildstar class the process nr ExitWildstar.process_nr = charactername_tbx.SelectedIndex; // Keysimulation hwnd Keysimulation.hwnd = hwnd; } else if (client_version_tbx.SelectedItem.ToString() == "x86") { ProcessReader.OpenProcxss(Wildstar_x86[charactername_tbx.SelectedIndex].Id); ProcessReader.base_adress_x86 = Wildstar_x86[charactername_tbx.SelectedIndex].MainModule.BaseAddress.ToInt32(); hwnd = Wildstar_x86[charactername_tbx.SelectedIndex].MainWindowHandle; } // Disable CBX charactername_tbx.IsEnabled = false; // Start Character Timer character_stats.Start(); } }
private void add_character_names() { // Shows Processes with Characternames if (client_version_tbx.SelectedItem.ToString() == "x64") { for (int i = 0; i < Wildstar.Length; i++) { // Open the process ProcessReader.OpenProcxss(Wildstar[i].Id); ProcessReader.base_adress = Wildstar[i].MainModule.BaseAddress.ToInt64(); try { Characternames = stats.player_name(); if (Characternames.Length > 0) { PlayerNames[i] = Characternames; this.ProcessHandle[i] = Wildstar[i].MainWindowHandle; GameID[i] = Wildstar[i].Id; } } catch { } } for (int j = 0; j < this.ProcessHandle.Length; j++) { if (this.PlayerNames[j] != null) { charactername_tbx.Items.Add(this.PlayerNames[j]); } } } else if (client_version_tbx.SelectedItem.ToString() == "x86") { for (int i = 0; i < Wildstar_x86.Length; i++) { // Open the process ProcessReader.OpenProcxss(Wildstar_x86[i].Id); ProcessReader.base_adress_x86 = Wildstar_x86[i].MainModule.BaseAddress.ToInt32(); try { Characternames = stats.player_name(); if ((Characternames.Length < 20) && (Characternames.Length > 0)) { PlayerNames[i] = Characternames; this.ProcessHandle[i] = Wildstar_x86[i].MainWindowHandle; GameID[i] = Wildstar_x86[i].Id; } } catch { } } for (int j = 0; j < this.ProcessHandle.Length; j++) { if (this.PlayerNames[j] != null) { charactername_tbx.Items.Add(this.PlayerNames[j]); } } } // # Shows Processes with Characternames }