Hi, made an extension of your mod to allow for modifiers. Bar 1 == 1234 Bar 2 == shift+1234 Bar 3 == ctrl+1234 Bar 4 == F1 F2 F3 F4 Mount remains on H, but moved the "suspend script" key to F8
This loads without error, on my PC. I think it requires v1x of AHK, rather than the new AHK v2.
As a matter of practice, I always include a condition in AHK so that it only runs when its target executable is running. Otherwise, it can get in the way of normal typing.
In this case, I would lead off with #ifwinactive ahk_exe HogwartsLegacy.exe
The shift versions of this script work fine. The others are harder to test, because CTRL is mapped to dodge and F1-F4 switch my spell rows. I'll have to remap those in game or edit the script to use some other combo.
OK. In my case, I remapped Dodge to "E". (Can't believe that was available.) And I mapped Sprint to "B". (I don't think that conflicts with dismounting brooms.)
That freed up CTRL, ALT and SHIFT, which are the modifiers most of us reach for, first.
I have the same error. how do i use it? which AHK version do i need? Tried downloading. Youre version is exaclty what im looking for but im sadly getting the same error
im confused so does this actually give u 8 bars visually to assign spells or is it something else? i guess its something else oh well guess i'll w8 maybe i'll give it a try just don't like dling from other sites :-/
This seems like the perfect mod for less stressful spell casting while in the middle of fights. Unfortunately I'm not able to get it to work. I installed AHK and double-clicked your mod, but nothing is changed :(
ofcourse he needs to install AutoHotKey software if he hasn't done so already. and you can safely assume he doesn't have autohotkey otherwise he would know what an AHK script is.
what do you think AHK stands for? can't exactly run an AHK file without AHK (AutoHotKey)
@kingsavage2 autohotkey is a program to change key inputs to other key inputs.
so you can change the keys on your keyboard (or controllers or flightstick or whatever) to any other key. or a set of keys. or maybe even a series of keys i don't know for sure about that last one.
so in short it turns all your paripheral buttons into configurable buttons.
(paripheral is things like mouse. keyboard. monitor excetra) it won't be able to change buttons on your monitor though. those do not communicate with the pc. but with a control board in the monitor itself.
I can't figure out the issue in the code myself but every time I try to start the script I get an error:
Error: Function calls require a space or "(". Use comma only between parameters. Text:SetKeyDelay, 200, 50 Line:3 File:D:\Vortex Mods\hogwartslegacy\AutoHotKey extended Spell bar-175-1-1676329573\aa.ahk The program will exit.
Oh, man. This was almost what I was looking for. Reaching beyond number 5 key is not ideal. I wish someone would make a mode adding 1 spell slot to all spell sets, so instead of 1 2 3 4, it would be 1 2 3 4 5. That would be optimal!
But, sure, being able to go all the way to 8 or more, in addition to what I said, because we could use the mission based spells, the blue ones, in the 6 7 8 9 0 buttons.
Do you think you could make a version that could do spell lines 3 and 4 by maybe having the second two spell rows be activated by holding shift and pressing 1-8?
Hi , have a question is it possible to make something for the cx box controller , i wisht to have something like this RT = RT+Button up ( for the first 4 spells ) and LT = LT+ Button down ( for the third 4 spells ) so i can use 8 spells infight and can change the spells by just using RT and LT , the toggle on LT is not important for me but maybe we can put it on select where is only map and map can be find under start ... this mod would made me soo happy
autohotkey does not work with xbox contorler but if ur using it on steam then u can prolly use steam controller support to translate those movments to normal keystrokes which will trigger autohotkey sadly i cant test anything sicne i have no controler andu have to try it ur self
30 comments
Bar 1 == 1234
Bar 2 == shift+1234
Bar 3 == ctrl+1234
Bar 4 == F1 F2 F3 F4
Mount remains on H, but moved the "suspend script" key to F8
$1:: ;$ To avoid autoignition
SetKeyDelay, 200, 50 ;SetKeyDelay , Delay, PressDuration
Send, {F1}
Send, {1}
Return
$2:: ;$ To avoid autoignition
SetKeyDelay, 200, 50 ;SetKeyDelay , Delay, PressDuration
Send, {F1}
Send, {2}
Return
$3:: ;$ To avoid autoignition
SetKeyDelay, 200, 50 ;SetKeyDelay , Delay, PressDuration
Send, {F1}
Send, {3}
Return
$4:: ;$ To avoid autoignition
SetKeyDelay, 200, 50 ;SetKeyDelay , Delay, PressDuration
Send, {F1}
Send, {4}
Return
+$1:: ;$ To avoid autoignition
SetKeyDelay, 200, 50 ;SetKeyDelay , Delay, PressDuration
Send, {F2}
Send, {1}
Return
+$2:: ;$ To avoid autoignition
SetKeyDelay, 200, 50 ;SetKeyDelay , Delay, PressDuration
Send, {F2}
Send, {2}
Return
+$3:: ;$ To avoid autoignition
SetKeyDelay, 200, 50 ;SetKeyDelay , Delay, PressDuration
Send, {F2}
Send, {3}
Return
+$4:: ;$ To avoid autoignition
SetKeyDelay, 200, 50 ;SetKeyDelay , Delay, PressDuration
Send, {F2}
Send, {4}
Return
^$1:: ;$ To avoid autoignition
SetKeyDelay, 200, 50 ;SetKeyDelay , Delay, PressDuration
Send, {F3}
Send, {1}
Return
^$2:: ;$ To avoid autoignition
SetKeyDelay, 200, 50 ;SetKeyDelay , Delay, PressDuration
Send, {F3}
Send, {2}
Return
^$3:: ;$ To avoid autoignition
SetKeyDelay, 200, 50 ;SetKeyDelay , Delay, PressDuration
Send, {F3}
Send, {3}
Return
^$4:: ;$ To avoid autoignition
SetKeyDelay, 200, 50 ;SetKeyDelay , Delay, PressDuration
Send, {F3}
Send, {4}
Return
$F1:: ;$ To avoid autoignition
SetKeyDelay, 200, 50 ;SetKeyDelay , Delay, PressDuration
Send, {F4}
Send, {1}
Return
$F2:: ;$ To avoid autoignition
SetKeyDelay, 200, 50 ;SetKeyDelay , Delay, PressDuration
Send, {F4}
Send, {2}
Return
$F3:: ;$ To avoid autoignition
SetKeyDelay, 200, 50 ;SetKeyDelay , Delay, PressDuration
Send, {F4}
Send, {3}
Return
$F4:: ;$ To avoid autoignition
SetKeyDelay, 200, 50 ;SetKeyDelay , Delay, PressDuration
Send, {F4}
Send, {4}
Return
$H::
setKeyDelay, 200,50
Send, {Tab Down}
Sleep 100
Send, {3}
Sleep, 100
Send, {Tab Up}
Return
F8::
Suspend
Pause,, 1
Return
Feel free to upload it if you want
Error at line 1.
Line Text :$1::
Error: Invalid hotkey.
The program will now exit
The script from the download works.
As a matter of practice, I always include a condition in AHK so that it only runs when its target executable is running. Otherwise, it can get in the way of normal typing.
In this case, I would lead off with
#ifwinactive ahk_exe HogwartsLegacy.exe
The shift versions of this script work fine. The others are harder to test, because CTRL is mapped to dodge and F1-F4 switch my spell rows. I'll have to remap those in game or edit the script to use some other combo.
OK. In my case, I remapped Dodge to "E". (Can't believe that was available.) And I mapped Sprint to "B". (I don't think that conflicts with dismounting brooms.)
That freed up CTRL, ALT and SHIFT, which are the modifiers most of us reach for, first.
i guess its something else oh well guess i'll w8 maybe i'll give it a try just don't like dling from other sites :-/
https://www.nexusmods.com/hogwartslegacy/mods/968
you may need to instal AutoHotKey software for make it work.
and you can safely assume he doesn't have autohotkey otherwise he would know what an AHK script is.
what do you think AHK stands for?
can't exactly run an AHK file without AHK (AutoHotKey)
@kingsavage2
autohotkey is a program to change key inputs to other key inputs.
so you can change the keys on your keyboard (or controllers or flightstick or whatever) to any other key. or a set of keys. or maybe even a series of keys i don't know for sure about that last one.
so in short it turns all your paripheral buttons into configurable buttons.
(paripheral is things like mouse. keyboard. monitor excetra)
it won't be able to change buttons on your monitor though. those do not communicate with the pc. but with a control board in the monitor itself.
Error: Function calls require a space or "(". Use comma only between parameters.
Text:SetKeyDelay, 200, 50
Line:3
File:D:\Vortex Mods\hogwartslegacy\AutoHotKey extended Spell bar-175-1-1676329573\aa.ahk
The program will exit.
But, sure, being able to go all the way to 8 or more, in addition to what I said, because we could use the mission based spells, the blue ones, in the 6 7 8 9 0 buttons.