There's three ways to go about this. Assuming you have already made separate profiles for Combat and Analysis mode (
see this link)
1. Create a Voice Attack or Auto Hot Key macro to press your mode change switch and your profile hot key. However, you would need to know how to code for these applications.
------------------------------------------------------------------
2. As
@nepomuk mentioned, it's possible to configure EDDI to communicate with Voice Attack and press the profile hot key buttons for you.
There is a thread about this
on reddit
I don't use VA or EDDI at the moment so I can't advise here
------------------------------------------------------------------
3. Probably the easiest method is to configure your Profiles.ini file. I'll attach an example (assumes in-game mode swap key is 'm', but you can change that in Profiles.ini)
So when you press your mode swap key, EDHM will toggle between two profiles.
If it gets out of sync just press a modifier key like CTRL + (your mode toggle key) to get it back in sync
Here's the required changes to Profiles.ini
In the top section under [Constants] add the following:
Code:
[Constants]
;------------------------------------------------------------------------------------------------------
; Start-up Values (set these parameters to your start-up preferences)
;
; This file is best viewed in Notepad++ with the Obsidian theme
; https://notepad-plus-plus.org/downloads/
;------------------------------------------------------------------------------------------------------
; This value sets the starting mode for the mode toggle.
; If you usually start in Analysis mode then set this value to 1
; If you usually start in Combat mode then set this value to 0
global $modeSwap = 0
At the bottom, insert the following code:
Code:
;------------------------------------------------------------------------------------------------------
; Mode Toggle Profiles (Combat / Analysis)
;
; Currently set to swap profiles with key 'm' (you can change this key bind below)
; Press your mode swap key when you enter the game
; If the profile is out-of-sync with the mode, press CTRL + (your mode swap key) to get them back in sync
;------------------------------------------------------------------------------------------------------
[keyToggleModeSwap]
; Change the key below to your in-game mode swap key bind (currently set as 'm')
Key = no_modifiers m
type = cycle
$modeSwap = 1,0
run = CommandListToggleMode
[CommandListToggleMode]
; Analysis Mode Profile
if $modeSwap == 0
y100 = 5
w103 = 1
x103 = 1
x104 = 1
y108 = 1
y104 = 1
z104 = 1
x105 = 10
y105 = 1
y106 = 1
x107 = 3
w106 = 1
y107 = 1
z105 = 1
y101 = 1
x101 = 2
z101 = 1
; Combat Mode Profile
else if $modeSwap == 1
y100 = 5
w103 = 1
x103 = 14
x104 = 13
y108 = 13
y104 = 13
z104 = 13
x105 = 13
y105 = 1
y106 = 13
x107 = 1
w106 = 3
y107 = 3
z105 = 11
y101 = 14
x101 = 1
z101 = 1
endif
So in this code block we set up a variable $modeSwap that can take a value of 0 or 1
If $modeSwap = 0 then we load the Analysis mode profile
If $modeSwap = 1 then we load the Combat mode profile
If it's out of sync then press a modifier key (such as CTRL) and your in-game mode swap key to get the profiles back in sync
I'll attach an example, but let me know if you have any questions