FAQ  •  Register  •  Login

[WoW] ToggleKey Map based upon Vehicle Entry/Exit

Moderator: MiRai

<<

peashooter

Posts: 2

Joined: Tue Mar 08, 2016 7:41 pm

Post Tue Mar 08, 2016 8:30 pm

ToggleKey Map based upon Vehicle Entry/Exit

Hi all!
I use a pro-style system with macros mapped to my combat hotkeys (i.e. '2' calls a dps macro) in WoW. Overall, this macro-based approach is working out great for me, but I am struggling a bit with vehicles. While my base system shies away from key broadcasts, vehicles pretty much require the standard action keys. At the moment, I'm deactivating key maps and activating broadcast mode (Ctl-Alt-M and Ctl-Alt-R) once I enter a vehicle, and then toggling back on exit (another Ctl-Alt-M and Ctl-Alt-R). This works, but it's not elegant.

Ideally, what I'm looking for is a method to activate a straight key broadcast key map (or even the standard 1 to = menu) when I enter a vehicle, and then de-activate that key map (or menu) when I exit the vehicle.

Does anyone have any suggestions or recommendations on how to achieve this within ISBoxer?

If this isn't possible within the ISBoxer configuration, I'm wondering if from a lua / addon standpoint, there is any way to activate / deactivate an isboxer key map based upon the game event UNIT_ENTERED_VEHICLE or UNIT_EXITED_VEHICLE?

thanks for any suggestions!
<<

bob

User avatar

League of Extraordinary Multiboxers

Posts: 4653

Joined: Sat Feb 15, 2014 11:14 am

Location: In the dining room, with the lead pipe.

Post Wed Mar 09, 2016 2:43 am

Re: ToggleKey Map based upon Vehicle Entry/Exit

There is no method to provide in game status back to ISBoxer. ISboxer has no idea that you are in a vehicle and never will.

But you know that you are in a vehicle..

If it was me, I'd setup a mapped key that had two steps, and in step 1, had Do Mapped Key Actions that ran both the Always On -> Activate Repeat and Always On _ Activate Maps. and in step 2, had the same thing. To make it safe, I'd throw in a couple of mapped key step actions to make sure they were on the correct steps too..

Just like this one below. You can copy this and Paste it from clipboard to the Mapped Key node in a Key Map (I used Non-Combat as the base), set a hotkey and try it out.
Code:
<?xml version="1.0" encoding="utf-8"?>
<Box xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ObjectType>ISBoxer_Toolkit.Configs.KeyMaps.MappedKey</ObjectType>
  <SerializedObject>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;MappedKey xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;Name&gt;Maps Off Repeat On&lt;/Name&gt;
  &lt;Description /&gt;
  &lt;SendNextClickBlockLocal&gt;false&lt;/SendNextClickBlockLocal&gt;
  &lt;ManualLoad&gt;false&lt;/ManualLoad&gt;
  &lt;ResetTimer&gt;0&lt;/ResetTimer&gt;
  &lt;ResetType&gt;Never&lt;/ResetType&gt;
  &lt;Mode&gt;OnPress&lt;/Mode&gt;
  &lt;Steps&gt;
    &lt;Step&gt;
      &lt;Stick&gt;0&lt;/Stick&gt;
      &lt;Stop&gt;false&lt;/Stop&gt;
      &lt;Stump&gt;false&lt;/Stump&gt;
      &lt;Disabled&gt;false&lt;/Disabled&gt;
      &lt;Actions&gt;
        &lt;MappedKeyAction xsi:type="MappedKeyStepAction"&gt;
          &lt;Target&gt;self&lt;/Target&gt;
          &lt;MappedKey&gt;
            &lt;KeyMapString&gt;Always On&lt;/KeyMapString&gt;
            &lt;MappedKeyString&gt;Activate Repeat&lt;/MappedKeyString&gt;
          &lt;/MappedKey&gt;
          &lt;Action&gt;Set&lt;/Action&gt;
          &lt;Value&gt;0&lt;/Value&gt;
        &lt;/MappedKeyAction&gt;
        &lt;MappedKeyAction xsi:type="MappedKeyStepAction"&gt;
          &lt;Target&gt;self&lt;/Target&gt;
          &lt;MappedKey&gt;
            &lt;KeyMapString&gt;Always On&lt;/KeyMapString&gt;
            &lt;MappedKeyString&gt;Activate Maps&lt;/MappedKeyString&gt;
          &lt;/MappedKey&gt;
          &lt;Action&gt;Set&lt;/Action&gt;
          &lt;Value&gt;1&lt;/Value&gt;
        &lt;/MappedKeyAction&gt;
        &lt;MappedKeyAction xsi:type="MappedKeyExecuteAction"&gt;
          &lt;Target&gt;self&lt;/Target&gt;
          &lt;RoundRobin&gt;false&lt;/RoundRobin&gt;
          &lt;KeyMapString&gt;Always On&lt;/KeyMapString&gt;
          &lt;MappedKeyString&gt;Activate Repeat&lt;/MappedKeyString&gt;
        &lt;/MappedKeyAction&gt;
        &lt;MappedKeyAction xsi:type="MappedKeyExecuteAction"&gt;
          &lt;Target&gt;self&lt;/Target&gt;
          &lt;RoundRobin&gt;false&lt;/RoundRobin&gt;
          &lt;KeyMapString&gt;Always On&lt;/KeyMapString&gt;
          &lt;MappedKeyString&gt;Activate Maps&lt;/MappedKeyString&gt;
        &lt;/MappedKeyAction&gt;
      &lt;/Actions&gt;
    &lt;/Step&gt;
    &lt;Step&gt;
      &lt;Stick&gt;0&lt;/Stick&gt;
      &lt;Stop&gt;false&lt;/Stop&gt;
      &lt;Stump&gt;false&lt;/Stump&gt;
      &lt;Disabled&gt;false&lt;/Disabled&gt;
      &lt;Actions&gt;
        &lt;MappedKeyAction xsi:type="MappedKeyStepAction"&gt;
          &lt;Target&gt;self&lt;/Target&gt;
          &lt;MappedKey&gt;
            &lt;KeyMapString&gt;Always On&lt;/KeyMapString&gt;
            &lt;MappedKeyString&gt;Activate Repeat&lt;/MappedKeyString&gt;
          &lt;/MappedKey&gt;
          &lt;Action&gt;Set&lt;/Action&gt;
          &lt;Value&gt;2&lt;/Value&gt;
        &lt;/MappedKeyAction&gt;
        &lt;MappedKeyAction xsi:type="MappedKeyStepAction"&gt;
          &lt;Target&gt;self&lt;/Target&gt;
          &lt;MappedKey&gt;
            &lt;KeyMapString&gt;Always On&lt;/KeyMapString&gt;
            &lt;MappedKeyString&gt;Activate Maps&lt;/MappedKeyString&gt;
          &lt;/MappedKey&gt;
          &lt;Action&gt;Set&lt;/Action&gt;
          &lt;Value&gt;2&lt;/Value&gt;
        &lt;/MappedKeyAction&gt;
        &lt;MappedKeyAction xsi:type="MappedKeyExecuteAction"&gt;
          &lt;Target&gt;self&lt;/Target&gt;
          &lt;RoundRobin&gt;false&lt;/RoundRobin&gt;
          &lt;KeyMapString&gt;Always On&lt;/KeyMapString&gt;
          &lt;MappedKeyString&gt;Activate Repeat&lt;/MappedKeyString&gt;
        &lt;/MappedKeyAction&gt;
        &lt;MappedKeyAction xsi:type="MappedKeyExecuteAction"&gt;
          &lt;Target&gt;self&lt;/Target&gt;
          &lt;RoundRobin&gt;false&lt;/RoundRobin&gt;
          &lt;KeyMapString&gt;Always On&lt;/KeyMapString&gt;
          &lt;MappedKeyString&gt;Activate Maps&lt;/MappedKeyString&gt;
        &lt;/MappedKeyAction&gt;
      &lt;/Actions&gt;
    &lt;/Step&gt;
  &lt;/Steps&gt;
&lt;/MappedKey&gt;</SerializedObject>
</Box>
<<

peashooter

Posts: 2

Joined: Tue Mar 08, 2016 7:41 pm

Post Wed Mar 09, 2016 12:03 pm

Re: ToggleKey Map based upon Vehicle Entry/Exit

bob - thanks very much for your reply! I'll give this a shot later today.

Return to Key Maps

Who is online

Users browsing this forum: No registered users and 0 guests