private void Button_OpenThisProcess_Click(object sender, RoutedEventArgs e) { if (ListBox_Processes.SelectedItems.Count == 1) { var p = ListBox_Processes.SelectedItems[0] as ProcessModel; this.SelectedLalaSlot = FFXIVMemory.GetLalaSlotFromProcess(p.Process); this.SelectedLalaSlot.Hooked = true; DialogResult = true; } }
public static void PerformActionThroughKeybind(LalaSlot lala, Enums.KeybindAction action, int kbWaitInMs) { if (action == Enums.KeybindAction.DiagLeft) { SendTwoKeysSync(lala.Window, Keys.W, Keys.Q, kbWaitInMs); } else if (action == Enums.KeybindAction.DiagRight) { SendTwoKeysSync(lala.Window, Keys.W, Keys.E, kbWaitInMs); } else { Keys k = Enums.GetKeyFromKeybindAction(action); SendSyncKey(lala.Window, k, kbWaitInMs); } }
private void button_LalaTwo_Select_Click(object sender, RoutedEventArgs e) { ProcessSelection processSelection = new ProcessSelection(); Nullable <bool> dialogResult = processSelection.ShowDialog(); if (dialogResult == true) { if (processSelection.SelectedLalaSlot != null) { this.button_LalaTwo_Select.Content = processSelection.SelectedLalaSlot.Id.ToString(); this.button_LalaTwo_Select.IsEnabled = false; this.label_LalaTwo_Name.Content = processSelection.SelectedLalaSlot.Name; this.LalaTwo = processSelection.SelectedLalaSlot; } } }
public static void PerformActionThroughKeybind(LalaSlot lala, Enums.KeybindAction action) { Keys k = Enums.GetKeyFromKeybindAction(action); SendSyncKey(lala.Window, k); }