Not sure who else needs this, but I got it to work pretty well with the mouse wheel. For those of you who found this and have no idea how to use AHK, here's how I did it. 1. Download autohotkey and run the installer. 2. Create a new txt file (i did one on my desktop for ease of access while figuring this out. It can go anywhere afaik) 3. Copy this following script into that text file:
#SingleInstance Force #Persistent #IfWinActive ahk_class Fallout4 #InstallMouseHook
; Create a variable called 'weap_slot' and set it to 1 weap_slot := 1
; Change the 5 to any number up to 9 to add more weapons to favorites. if (weap_slot > 5) weap_slot := 0
; Add semicolons to the beginning of the next two lines to add slot 1 functionality; remove semicolons to save slot 1 for anything else. if (weap_slot = 1) weap_slot := 2
Goto change_weapon
; -----Descends the weapon wheel-----
; mouse wheel up Wheelup:: weap_slot := weap_slot-1
; Add semicolons to the beginning of the next two lines to add slot 1 functionality; remove semicolons to save slot 1 for anything else. if (weap_slot = 1) weap_slot := 0
; If the hotbar value is in the negatives, send it to 5. if (weap_slot < 0) weap_slot := 5
Goto change_weapon
; Menu title has a colon after its name. change_weapon: SetKeyDelay, 20,50 SendEvent, %weap_slot% Return
4. Change the name of the file to whatever name you want, but change the TXT file extension to .ahk. 5. Right click on the file after saving and exiting and select "run script" 6. Check to make sure your script is running by selecting the up arrow on your taskbar and looking for the green box with an "H" on it, indicating the script is running properly. 7. Run FO4 and choose your hotkeys 2-5 (or more if you edit the script to your liking, read the commented bits) 8. Enjoy scrolling.
To disable the POV change that comes with using the mouse wheel, I use and recommend this mod: https://www.nexusmods.com/fallout4/mods/38673?tab=description
This is what I did to get this script working as someone who had no clue how to use it in the first place. I hope it helps out someone else.
How i can put it on my mouse wheel so that i can switch guns up and down with the mouse wheel? And how could i change the Hotkeys to switch guns? Thanks for your work
The scroll wheel is used for zooming in and out in Third Person in the default game. Considering how many people use that feature, it wasn't an "oversight," it was on purpose.
17 comments
1. Download autohotkey and run the installer.
2. Create a new txt file (i did one on my desktop for ease of access while figuring this out. It can go anywhere afaik)
3. Copy this following script into that text file:
#SingleInstance Force
#Persistent
#IfWinActive ahk_class Fallout4
#InstallMouseHook
; Create a variable called 'weap_slot' and set it to 1
weap_slot := 1
; -----Ascends the weapon wheel-----
; mouse wheel downwards
Wheeldown::
weap_slot := weap_slot+1
; Change the 5 to any number up to 9 to add more weapons to favorites.
if (weap_slot > 5)
weap_slot := 0
; Add semicolons to the beginning of the next two lines to add slot 1 functionality; remove semicolons to save slot 1 for anything else.
if (weap_slot = 1)
weap_slot := 2
Goto change_weapon
; -----Descends the weapon wheel-----
; mouse wheel up
Wheelup::
weap_slot := weap_slot-1
; Add semicolons to the beginning of the next two lines to add slot 1 functionality; remove semicolons to save slot 1 for anything
else.
if (weap_slot = 1)
weap_slot := 0
; If the hotbar value is in the negatives, send it to 5.
if (weap_slot < 0)
weap_slot := 5
Goto change_weapon
; Menu title has a colon after its name.
change_weapon:
SetKeyDelay, 20,50
SendEvent, %weap_slot%
Return
4. Change the name of the file to whatever name you want, but change the TXT file extension to .ahk.
5. Right click on the file after saving and exiting and select "run script"
6. Check to make sure your script is running by selecting the up arrow on your taskbar and looking for the green box with an "H" on it, indicating the script is running properly.
7. Run FO4 and choose your hotkeys 2-5 (or more if you edit the script to your liking, read the commented bits)
8. Enjoy scrolling.
To disable the POV change that comes with using the mouse wheel, I use and recommend this mod: https://www.nexusmods.com/fallout4/mods/38673?tab=description
This is what I did to get this script working as someone who had no clue how to use it in the first place. I hope it helps out someone else.
And how could i change the Hotkeys to switch guns?
Thanks for your work
It's a script for software that presses keys for you.
How do I configure and use this?
i ask my self..how hard is for Bethesda to think this? apparently very!