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;
     }
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
        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;
                }
            }
        }
Exemplo n.º 4
0
        public static void PerformActionThroughKeybind(LalaSlot lala, Enums.KeybindAction action)
        {
            Keys k = Enums.GetKeyFromKeybindAction(action);

            SendSyncKey(lala.Window, k);
        }