Fallout 4
0 of 0

File information

Last updated

Original upload

Created by

BetaVirus

Uploaded by

Valyn81

Virus scan

Some manually verified files

About this mod

Precision Movement and Rotation script inspired by ab3d0.

Requirements
Permissions and credits
Translations
  • Spanish
Changelogs
Donations
I have spent hours trying to learn scripting in Autohotkey; just so I can make this mod and upload it to the Nexus. Due to Nexus T&C, I was not able to use any of the original mods coding. As such there have been some changes, for the better, I hope. I have added more hotkeys and simplified the active script over all. Though if you read the script it is much much more informative and organized

PLEASE, provide me with suggestions and feedback on how feel about the mods hotkeys settings

This is the code for anyone that want to make their own or check it out,
Spoiler:  
Show
/* https://autohotkey.com
 * ©2003-2014 Chris Mallett, portions ©AutoIt Team and the AHK community
 * Software License: GNU General Public License
 * Created using: SciTE4AutoHotkey
 * Version 3.0.06.01 - Based on SciTE 3.5.1
 * Built on Oct 12 2014 13:40:05
 * by fincs - Original SciTE by Neil Hodgson
 * Written By: BetaVirus
 * Date Compiled: 06/23/17
 * Date of last edit: 06/23/17
 * Title: AutoHotKey Object mover Script for Fallout 4
 * This scrip was inspired by ab3d0 for his mod 'Presision Movement and Rotation on Nexus Mods website - which has since been removed by the author'
 */
;---------------------------------------------
;Active commands
;---------------------------------------------
#SingleInstance, Force;Limit to one instance of Autohotkey Script [FORCE,IGNORE,OFF]
MsgBox, Hotkey functions will not be run until Fallout is the active window. `nPress Shift+PauseQuit Script at anytime. `nPress Win+PPause Script (Buggy w/ Mods) `nPress CTRL+ALT+SSuspend Hotkeys `nPress CTRL+ALT+NumPadEnterShow Hotkeylist; Place a ; before the MsgBox to disable this popup when launching
^!NumpadEnter::
MsgBox, 0, Fallout 4 Movement Hotkeys, CTRL+ALT+NumpadEnterShow Hotkey List`nShift+PauseExit FO4 Hotkeyscript`nCTRL+ALT+SSuspend Hotkeys`nWIN+PPause AutoHotkey Script (Buggy w/ mods) ==========================================`nNumpadAddRaise Object by 1 or 5`nNumpadSubLower Object by 1 or 5`n==========================================`nNumpad6Move Right by 1`nNumpad4Move Left by 1`nNumpad8Move Forward by 1`nNumpad2Move Back by 1`n==========================================`nNumpadRightMove Right by 5`nNumpadLeftMove Left by 5`nNumpadUpMove Forward by 5`nNumpadDownMove Back by 5`n==========================================`nNumpad9Tilt Forward-Right by 1`nNumpad3Tilt Back-Right by 1`nNumpad7Tilt Forward-Left by 1`nNumpad1Tilt Back-Left by 1`n==========================================`nNumpadPgUpTilt Forward-Right by 5`nNumpadPgDnTilt Back-Right by 5`nNumpadHomeTilt Forward-Left by 5`nNumpadEndTilt Back-Left by 5`n==========================================`nNumpadMultRotate Right`nNumpadDivRotate Left`n==========================================`nNumpad0Get Selected Ref Positions`nNumpadInsGet Selected Ref Angles`n==========================================`nNumpadDotGet player Grabbed Ref`nNumpadDelGet player Grabbed Ref`n==========================================`nCtrl+Numpad5Reset Object Angle to 0`nCtrl+NumpadClearReset Object Angle to 0`n==========================================`nAlt+NumpadDotDuplicate Selected Ref`nAlt+NumpadDelMove Selected Ref to Player`n==========================================`nCtrl+NumpadEnterDisable Selected Ref`nAlt+NumpadEnterEnable Selected Ref
+Pause::ExitApp;Exit Script, aka close this script [Indiscriminate Fallout 4 running]
#IfWinActive, ahk_class Fallout4ahk_exe Fallout4.exe;Conditional check for Fallout 4 application before running hotkey commands [as reported by Windowspy]
;---------------------------------------------
;Removed commands
;---------------------------------------------
;#UseHook;keep in memory, not needed for hotkeys (remove ; infront of the # to enable)
;#Persistent;Remains active and does not terminate unless you tell it to quit (remove ; infront of the # to enable)
;---------------------------------------------
;  Pause Script
;---------------------------------------------
^!s::Suspend  ; Ctrl+Alt+S   NOTE: This will suspend the Hotkeys but not the script.
#p:: Pause  ; Win+P   NOTE: This does not seem to work without Alt+Tabbing out of Fallout4. On my Moodded game to keep minimizing over and over again at last 5-15 times before I can play again.
;---------------------------------------------
;  Modify Position Commands
;---------------------------------------------
NumpadAdd::;move object move down [numlock toggle move by 1 or 5]
if (GetKeyState("NumLock", "T"))
{
SetKeyDelay, 0,40
SendInput, modpos z 1
sendEvent, {enter}
sleep, 50
}
else
{
SetKeyDelay, 0,40
SendInput, modpos z 5
sendEvent, {enter}
sleep, 50
}
return
NumpadSub::;move object move down [numlock toggle move by 1 or 5]
if (GetKeyState("NumLock", "T"))
{
SetKeyDelay, 0,40
SendInput, modpos z -1
sendEvent, {enter}
sleep, 50
}
else
{
SetKeyDelay, 0,40
SendInput, modpos z -5
sendEvent, {enter}
sleep, 50
}
return
Numpad6::;move right by 1
SetKeyDelay, 0,40
SendInput, modpos x 1
sendEvent, {enter}
sleep, 50
return
Numpad4::;move left by 1
SetKeyDelay, 0,40
SendInput, modpos x -1
sendEvent, {enter}
sleep, 50
return
Numpad8::;move forward by 1
SetKeyDelay, 0,40
SendInput, modpos y 1
sendEvent, {enter}
sleep, 50
return
Numpad2::;move back by 1
SetKeyDelay, 0,40
SendInput, modpos y -1
sendEvent, {enter}
sleep, 50
return
NumpadRight::;move right by 5
SetKeyDelay, 0,40
SendInput, modpos x 5
sendEvent, {enter}
sleep, 50
return
NumpadLeft::;move left by 5
SetKeyDelay, 0,40
SendInput, modpos x -5
sendEvent, {enter}
sleep, 50
return
NumpadUp::;move forward by 5
SetKeyDelay, 0,40
SendInput, modpos y 5
sendEvent, {enter}
sleep, 50
return
NumpadDown::;move back by 5
SetKeyDelay, 0,40
SendInput, modpos y -5
sendEvent, {enter}
sleep, 50
return
;---------------------------------------------
;  Modify Angle Commands
;---------------------------------------------
Numpad9::;tilt forward-right by 1
SetKeyDelay, 0,40
SendInput, modangle y 1
sendEvent, {enter}
sleep, 50
return
Numpad3::;tilt back-right by 1
SetKeyDelay, 0,40
SendInput, modangle y -1
sendEvent, {enter}
sleep, 50
return
Numpad7::;tilt Forward-Left by 1
SetKeyDelay, 0,40
SendInput, modangle x 1
sendEvent, {enter}
sleep, 50
return
Numpad1::;tilt Back-Left by 1
SetKeyDelay, 0,40
SendInput, modangle x -1
sendEvent, {enter}
sleep, 50
return
NumpadPgUp::;tilt forward-right by 5
SetKeyDelay, 0,40
SendInput, modangle y 5
sendEvent, {enter}
sleep, 50
return
NumpadPgDn::;tilt back-right by 5
SetKeyDelay, 0,40
SendInput, modangle y -5
sendEvent, {enter}
sleep, 50
return
NumpadHome::;tilt Forward-Left by 5
SetKeyDelay, 0,40
SendInput, modangle x 5
sendEvent, {enter}
sleep, 50
return
NumpadEnd::;tilt back-Left by 5
SetKeyDelay, 0,40
SendInput, modangle x -5
sendEvent, {enter}
sleep, 50
return
NumpadMult::;rotate left [numlock toggle move by 1 or 5]
if (GetKeyState("NumLock", "T"))
{
SetKeyDelay, 0,40
SendInput, modangle z 1
sendEvent, {enter}
sleep, 50
}
else
{
SetKeyDelay, 0,40
SendInput, modangle z 5
sendEvent, {enter}
sleep, 50
}
return
NumpadDiv::;rotate right [numlock toggle move by 1 or 5]
if (GetKeyState("NumLock", "T"))
{
SetKeyDelay, 0,40
SendInput, modangle z -1
sendEvent, {enter}
sleep, 50
}
else
{
SetKeyDelay, 0,40
SendInput, modangle z -5
sendEvent, {enter}
sleep, 50
}
return
;---------------------------------------------
;  Get Commands
;---------------------------------------------
Numpad0::;get X,Y,Z coordnates of selected object
SetKeyDelay, 0,40
SendInput, getpos x;
sleep, 50
SendInput, getpos y;
sleep, 50
SendInput, getpos z
sendEvent, {enter}
sleep, 50
return
NumpadIns::;get X,Y,Z angle of selected object
SetKeyDelay, 0,40
SendInput, getangle x;
sleep, 50
SendInput, getangle y;
sleep, 50
SendInput, getangle z
sendEvent, {enter}
sleep, 50
return
NumpadDot::;Get Player grabbed Refrence (Picked up object ref)
SetKeyDelay, 0,40
SendInput, getplayer
sleep, 50
SendInput, grabbedref
sendEvent, {enter}
sleep, 50
return
NumpadDel::;Get Player grabbed Refrence (Picked up object ref)
SetKeyDelay, 0,40
SendInput, getplayer
sleep, 50
SendInput, grabbedref
sendEvent, {enter}
sleep, 50
return
;---------------------------------------------
;  ResetCommands
;---------------------------------------------
Numpad5::;reset object rotation to 0
SetKeyDelay, 0,40
SendInput, setangle x 0;
sleep, 50
SendInput, setangle y 0;
sleep, 50
SendInput, setangle z 0
sendEvent, {enter}
sleep, 50
return
NumpadClear::;reset object rotation to 0
SetKeyDelay, 0,40
SendInput, setangle x 0;
sleep, 50
SendInput, setangle y 0;
sleep, 50
SendInput, setangle z 0
sendEvent, {enter}
sleep, 50
return
;---------------------------------------------
;  Other Commands
;---------------------------------------------
!NumpadDot::;Spawn Duplicate of selected item
SetKeyDelay, 0,40
SendInput, SpawnDupe
sendEvent, {enter}
sleep, 50
return
!NumpadDel::;Spawn Duplicate of selected item
SetKeyDelay, 0,40
SendInput, SpawnDupe
sendEvent, {enter}
sleep, 50
return
!Numpad0::;Move object to Player
SetKeyDelay, 0,40
SendInput, moveto player
sendEvent, {enter}
sleep, 50
return
!NumpadIns::;Move object to Player
SetKeyDelay, 0,40
SendInput, moveto player
sendEvent, {enter}
sleep, 50
return
^NumpadEnter::;Disable Selected Ref
SetKeyDelay, 0,40
SendInput, Disable
sendEvent, {enter}
sleep, 50
return
!NumpadEnter::;Enable Selected Ref
SetKeyDelay, 0,40
SendInput, Enable
sendEvent, {enter}
sleep, 50
return




So with no further delays, I give you
Autohotkey Object Mover for Fallout 4

Brought to you by:
  • https://autohotkey.com
  • ©2003-2014 Chris Mallett, portions ©AutoIt Team and the AHK community
  • Software License: GNU General Public License
  • Created using: SciTE4AutoHotkey
  • Version 3.0.06.01 - Based on SciTE 3.5.1
  • Built on Oct 12 2014 13:40:05
  • by fincs - Original SciTE by Neil Hodgson
  • Written By: BetaVirus
  • Date Compiled: 06/23/17
  • Date of last edit: 06/23/17
  • Title: AutoHotKey Object mover Script for Fallout 4
  • This script was inspired by ab3d0 for his mod 'Precision Movement and Rotation' on Nexus Mods website - which has since been removed by the author

I have compiled a version of the script to run as an .EXE; so that you no longer need the Autohotkey installed to run it.
  • This will show up in your task manager as Fallout4MoveAnything-NoPopup or Fallout4MoveAnything-Popup
  • If, you do not wish to run it as an exe; I have included the script file version, that requires you to install Autohotkey


I have also given you the option to download a version of the script that will show a popup window upon first launching the script, informing you that the hotkey scripts will NOT run without fallout 4 as the active window. In other words, this script should not cause you to have issues outside of fallout, should you forget to close the app/script after you close Fallout 4
  • If you do not want a pop up, download the non popup version.
  • I have included a hotkey to exit the app/script so that you do not have to close it manually every time. Shift+Pause key


If anyone wants to change the keys to something else here is a helpful list of keys:
https://www.autohotkey.com/docs/KeyList.htm

Please give thanks to ad3d0 for his work in the past and enjoy what I was able to make base on his work.

Below you will find a copy if the original mod page, as reconstructed the the best of my knowledge.
Anything highlighted in orange has been changed with my mod.
====================================================================== 
Precise object moving and rotating by ad3d0
Original mod Added: 29/11/2015 - 07:51PM
Last Updated (to the best of my knowledge): 26/10/2016 - 08:01AM

This mod allows you to move selected object in any directions, and rotate them, using number pad keys. Allowing you to move any object anywhere. including Inside other object and object that are hidden and/or not meant to be moved, if you wish.

You must have the console available to use this mod, as it types commands in console windows.
  • For it to work you need to install AutoHotkeys first. This simple app will show up as a green H icon down by the time
  • After installation, download the main file here and extract it to your desktop, or Fallout 4 folder (make a shortcut to desktop if desired). 
  • Then double click it and you are good to go. It will work while you are in-game.
In-game usage:
  • Open console (~ button), select object you want to move by left clicking on it. Then just press and hold desired hotkey. 
  • The console MUST be open to moving the object. Otherwise the commands will trigger other game functions as if  you were trying to press enter, number, etc. (it open my pipboy, switched to my map, then merks menu, out of the pipboy and switch my weapon before reloading it; when i forgot to open the console)
It has two modes:
  • NumLock on - moves and rotates by 1 unit. 
  • NumLock off - moves and rotates by 5 units.

Hotkeys: (New Hotkey list can be viewed at any time by pressing Ctrl + Alt + NumberPad Enter)
Orientation is static in the game as if your character was facing south on the map
  • NumLock OFF - Normal mode (adjusts object by +/- 5)
  • NumLock ON - Smooth mode (adjusts object by +/- 1)
  • Num4 and Num6 - moves object by "X" axis (Left/right)
  • Num8 and Num2 - moves object by "Y" axis (Back/Forward)
  • Num"+" and Num"-" - moves abject by "Z" axis (Up/Down)
  • Num9 and Num3 - rotates object around "Y" axis (Tilt Left)
  • Num 7 and Num1 - rotates object around "X" axis (Tilt Right)
  • Num/ and Num* - rotates object around "Z" axis (Rotate Left/Right)
  • Num5 - resets object angles to 0
  • Num0 and NumIns - Get Pos or Angle of selected object
  • NumDot and NumDel - Get player grabbed reference
  • Alt+NumDot and NumDel - Duplicate selected object
  • Alt+Num0 and NumIns - Move object to Player
  • Ctrl+NumEnter - Disable Selected object
  • Alt+NumEnter - Enable Selected object
  • Shift+Pause - Quit AutoHotkey Script
  • Win+P - Pause AutoHotkey Script
  • Ctrl+Alt+S - Suspend Hotkeys

Quick tip to avoid the flashing texture when moving object inside another object  or remove the slight blur immediately, instead of waiting to reload the area: change the number to .0001


TODO List:
  • Add hotkey combo to make all of them move objects by 50 or something like that. Please let me know what range increments you would like to see. The one people seem to want more i will make 

Demo and explanation. Thx to Dezdicardo (klaxon21) for great videos!
(Videos are still valid for how my mod works)



My Other Mods:
=============================================================================================
Compiled list of my mods:

Compiled list of mod I feel compliment my mods:

Honorable mentions and amazing mods:
=