Here's a list of the controls: https://legoworlds.gamepedia.com/Controls
I also need additional code that will only activate the script when the window is active, if possible.
Thanks in advance to anyone willing to do this for me.
Similar to something like this that was given to me to bypass Fallout 4's hardcoded keys. Yet this was done in a much earlier version of AHK. I don't think I can't do it like this;
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#SingleInstance Force
#MaxHotkeysPerInterval 99999
#IfWinActive ahk_class Fallout4
#Persistent
#UseHook
; Keybinds
Up::w ; Forward
Down::s ; Backward
,::a ; Strafe Left
.::d ; Strafe Right
LButton::LButton ; Attack
RButton::RButton ; Aim/Block
RAlt::LAlt ; Bash/Powerattack/Grenade
e::e ; Activate
MButton::r ; Ready/Reload
Tab::Tab ; Pip-boy
LButton::v ; Change POV/Workshop
Space::Space ; Jump
RShift::LShift ; Sprint
q::q ; VATS
RCtrl::LCtrl ; Sneak
c::c ; Run/Walk
CapsLock::CapsLock ; Toggle Run/Walk
x::x ; Automove
f::f ; Favorites
F5::F5 ; Quicksave
F9::F9 ; Quickload
Esc::Esc ; Pause
k::k ; QuickStats
i::i ; QuickInventory
j::j ; QuickData
m::m ; QuickMap
o::o ; QuickRadio