Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // HotKeyNet LoTRO config
- // GROUP
- // vim: ts=4
- //<IncludeFile "C:\Users\cc\Documents\The Lord of the Rings Online\common.hkn">
- //<IncludeFile "C:\Users\cc\Documents\The Lord of the Rings Online\lotro-common.hkn">
- //<IncludeFile "C:\Users\cc\Documents\The Lord of the Rings Online\lotro-group.hkn">
- //<IncludeFile "C:\Users\cc\Documents\The Lord of the Rings Online\lotro-1080.hkn">
- //=========================================================================
- // common.hkn
- // HotKeyNet common configuration for all profiles
- // vim: ts=4
- // Vim syntax file: http://pastebin.com/rbTLU23Y
- <Label WDEFAULT local sendfocuswin>
- //=========================================================================
- // Mac compatible keyboard:
- // WindowsLogo key remap -> Ctrl
- // NB: happens for ALL windows, all the time, except for UltraVNC ("tringa")
- <UseKeyAsModifier LWin>
- // remap all LWin -> Ctrl keys
- <KeyList alphanum A-Z, 0-9>
- <Hotkey LWin alphanum >
- <If ActiveWinIsNot "tringa">
- <SendLabel WDEFAULT>
- <Key Ctrl %TriggerMainKey%>
- <Else>
- <SendLabel WDEFAULT>
- <Key %TRIGGER%>
- // remap all LWin -> Ctrl mouse buttons
- <KeyList buttons LButton,RButton,MButton>
- <Hotkey LWin buttons >
- <If ActiveWinIsNot "tringa">
- <SendLabel WDEFAULT>
- <KeyDown Ctrl>
- <ClickMouse %TriggerMainKey%>
- <KeyUp Ctrl>
- <Else>
- <SendLabel WDEFAULT>
- <Key %TRIGGER%>
- //=========================================================================
- // lotro-common.hkn
- // HotKeyNet config for dual-boxing LOTRO with different classes.
- // COMMON
- // vim: ts=4
- // Vim syntax file: http://pastebin.com/rbTLU23Y
- // It is optimized for playing different classes and all bindings work
- // equally well from either window.
- // On a fast machine it usually doesn't cause a window focus switch
- // so you can play with one window full-screen.
- // You'll almost certainly need to edit the script for your own key bindings:
- // HOTKEYS ASSIGNED:
- // Alt W Rename the current window. Press multiple times to toogle.
- // You'll need to have one window called "LotRO MAIN",
- // and one called "LotRO AUX".
- // Alt Q Set up for Full-screen mode (adjust in-game resolution first)
- // Alt A Set up for Windowed mode
- // F1-F6 These are intercepted and sent only to the "other" window,
- // (where they target the second fellowship member first).
- // Shift F Turn on FOLLOWING (the second fellowship member).
- // FOLLOWING HOTKEYS: These are sent to both windows when FOLLOWING is on:
- // Shift-D Mount/Unmount
- // Space Jump
- // Plus Equip first cosmetic outfit
- // Shift Plus Equip second cosmetic outfit
- // Ctrl Plus Equip third cosmetic outfit
- // Alt Plus Equip fourth cosmetic outfit
- // Ctrl Tab Toggle walk/run
- // Shift S Turn off FOLLOWING (by moving imperceptibly)
- // Ctrl-W Send a 'W' to the OTHER window
- // "OTHER" HOTKEYS: These are for controlling just the other character
- // Ctrl-E Switch to the other window and move forward (while held)
- // Ctrl-Backquote Select nearest object and Use it
- // HOTKEYS ASSUMED:
- // E A movement key. Used to stop following.
- // Ctrl F2-6 Target second-sixth fellowship member.
- // HKN Settings (diff from defaults):
- // General:
- // X Start hidden
- // - Disable foreground lock
- // - Check for newer version
- // Send Mode Settings
- // X Use new SendWinM and SendWinMF
- // - Attach threads for SendInput
- // X Clear modifier before executing hotkey
- //
- // Define labels for LOTRO windows
- <Label WMAIN local SendWin "LoTRO MAIN">
- <Label WAUX local SendWin "LoTRO AUX">
- // Use this a "subroutine" hotkey
- // (work-around for not having compound or nested IF statements)
- <UseKeyAsModifier Junja>
- //=========================================================================
- // WINDOW RENAME
- // Rename Active Window
- <Hotkey Alt W>
- <If ActiveWinIs "The Lord of the Rings Online">
- // <RenameFromPath "D:\Program Files (x86)\Turbine\The Lord of the Rings Online\lotroclient.exe" "LoTRO MAIN">
- <RenameWin "The Lord of the Rings Online" "LoTRO MAIN">
- <Else If ActiveWinIs "LoTRO MAIN">
- <RenameWin "LoTRO MAIN" "LoTRO AUX">
- <Else If ActiveWinIs "LoTRO AUX">
- <RenameWin "LoTRO AUX" "LoTRO MAIN">
- <Else>
- <SendLabel WDEFAULT>
- <Key %TRIGGER%>
- <EndIf>
- //=========================================================================
- // WINDOW MINIMIZE/MAXIMIZE TOOLS
- // NB: These are done in the solo/group files
- //=========================================================================
- // ALWAYS-ON HOTKEYS
- // NB: These are done in the solo/group files
- //=========================================================================
- // FOLLOWING -- hotkeys sent only if FOLLOWING is On.
- // Turn FOLLOWING On
- <Hotkey Shift F>
- <SetVar FOLLOWING "On">
- <If ActiveWinIs "LoTRO MAIN">
- <SendLabel WAUX>
- <Key Ctrl F2> // target first fellow
- <Key Shift Tab> // follow (keybinding)
- // <Text /follow><Key Enter> // follow
- // don't send this: it delays enough to cause a window-focus switch
- // <Text /f Now Following ;target><Key Enter>
- <Restore>
- <Else If ActiveWinIs "LoTRO AUX">
- <SendLabel WMAIN>
- <Key Ctrl F2> // target first fellow
- <Key Shift Tab> // follow (keybinding)
- // <Text /follow><Key Enter> // follow
- // <Text /f Now Following ;target><Key Enter>
- <Restore>
- <Else>
- <SendLabel WDEFAULT>
- <Key %TRIGGER%>
- <EndIf>
- // Turn FOLLOWING Off
- <Hotkey Shift S>
- <SetVar FOLLOWING "Off">
- <If ActiveWinIs "LoTRO MAIN">
- <SendLabel WAUX>
- <Key E> // move forward (unfollow)
- // <Text /f Stopped following><Key Enter>
- <Restore>
- <Else If ActiveWinIs "LoTRO AUX">
- <SendLabel WMAIN>
- <Key E> // move forward (unfollow)
- // <Text /f Stopped following><Key Enter>
- <Restore>
- <Else>
- <SendLabel WDEFAULT>
- <Key %TRIGGER%>
- <EndIf>
- // OtherHotKeyFollow: Send a hotkey to the other window and then follow
- <Template OtherHotKeyFollow>
- <HotKey Junja %1%> // my subroutine fake-keybinding
- <If ActiveWinIs "LoTRO MAIN">
- <Wait 1000> // delay follower so it looks natural
- <SendLabel WAUX>
- <Key Ctrl F2> // target first fellow
- <Key %1%> // send the key
- <Key Shift Tab> // follow (keybinding)
- // <Text /follow><Key Enter> // resume following
- <Restore>
- <Else If ActiveWinIs "LoTRO AUX">
- <Wait 1000> // delay follower so it looks natural
- <SendLabel WMAIN>
- <Key Ctrl F2> // target first fellow
- <Key %1%> // send the key
- <Key Shift Tab> // follow (keybinding)
- // <Text /follow><Key Enter> // resume following
- <Restore>
- <EndIf>
- <EndTemplate>
- // OtherHotKeyFollow2: Same as above but for double-keystroke key binding
- <Template OtherHotKeyFollow2>
- <HotKey Junja %1% %2%>
- <If ActiveWinIs "LoTRO MAIN">
- <Wait 1000> // delay follower so it looks natural
- <SendLabel WAUX>
- <Key Ctrl F2> // target first fellow
- <Key %1% %2%> // send the key
- <Key Shift Tab> // follow (keybinding)
- // <Text /follow><Key Enter> // resume following
- <Restore>
- <Else If ActiveWinIs "LoTRO AUX">
- <Wait 1000> // delay follower so it looks natural
- <SendLabel WMAIN>
- <Key Ctrl F2> // target first fellow
- <Key %1% %2%> // send the key
- <Key Shift Tab> // follow (keybinding)
- // <Text /follow><Key Enter> // resume following
- <Restore>
- <EndIf>
- <EndTemplate>
- // OtherHotKeyFollow22: Same as above but with work-around for walk/run
- // walk/run toggle doesn't take effect until the next voluntary movement
- <Template OtherHotKeyFollow22>
- <HotKey Junja %1% %2%>
- <If ActiveWinIs "LoTRO MAIN">
- <Wait 1000> // delay follower so it looks natural
- <SendLabel WAUX>
- <Key %1% %2%> // send the key
- <Key E> // voluntary movement
- <Key Ctrl F2> // target first fellow
- <Key Shift Tab> // re-follow (keybinding)
- <Restore>
- <Else If ActiveWinIs "LoTRO AUX">
- <Wait 1000> // delay follower so it looks natural
- <SendLabel WMAIN>
- <Key %1% %2%> // send the key
- <Key E> // voluntary movement
- <Key Ctrl F2> // target first fellow
- <Key Shift Tab> // re-follow (keybinding)
- <Restore>
- <EndIf>
- <EndTemplate>
- // OtherHotkey: Send a keystroke command to the other window
- <Template OtherHotKey>
- <Hotkey Junja %1%>
- <If ActiveWinIs "LoTRO MAIN">
- <Wait 1000> // delay follower so it looks natural
- <SendLabel WAUX>
- <Key %1%>
- <Restore>
- <Else If ActiveWinIs "LoTRO AUX">
- <Wait 1000> // delay follower so it looks natural
- <SendLabel WMAIN>
- <Key %1%>
- <Restore>
- <EndIf>
- <EndTemplate>
- // OtherHotKey2: Same as above but for double-keystroke key binding
- <Template OtherHotKey2>
- <Hotkey Junja %1% %2%>
- <If ActiveWinIs "LoTRO MAIN">
- <Wait 1000> // delay follower so it looks natural
- <SendLabel WAUX>
- <Key %1% %2%>
- <Restore>
- <Else If ActiveWinIs "LoTRO AUX">
- <Wait 1000> // delay follower so it looks natural
- <SendLabel WMAIN>
- <Key %1% %2%>
- <Restore>
- <EndIf>
- <EndTemplate>
- // Define FOLLOW commands (for both windows)
- <ApplyTemplate OtherHotKey2 Shift D> // mount/unmount
- <ApplyTemplate OtherHotKeyFollow Space> // jump
- <ApplyTemplate OtherHotKey Plus> // equip first cosmetic outfit
- <ApplyTemplate OtherHotKey2 Shift Plus> // equip second cosmetic outfit
- <ApplyTemplate OtherHotKey2 Ctrl Plus> // equip third cosmetic outfit
- <ApplyTemplate OtherHotKey2 Alt Plus> // equip fourth cosmetic outfit
- <ApplyTemplate OtherHotKeyFollow22 Ctrl Tab> // toggle run/walk
- // here is the actual key binding...
- // NB: these keys will no longer key-repeat on other (non-LOTRO) windows.
- <Hotkey Shift D; Space; Plus; Shift Plus; Ctrl Plus; Alt Plus; Ctrl Tab>
- <SendLabel WDEFAULT>
- <Key %TRIGGER%> // send key to current window
- <If FOLLOWING Is "On">
- <DoHotKey HotKey Junja %TRIGGER%>
- <EndIf>
- //=========================================================================
- // OTHER -- hotkeys sent only to the other window
- // Send a E movement key to the other window
- <MovementHotkey Ctrl E>
- <If ActiveWinIs "LoTRO MAIN">
- <SendLabel WAUX>
- <Key E>
- //<Restore>
- <Else If ActiveWinIs "LoTRO AUX">
- <SendLabel WMAIN>
- <Key E>
- //<Restore>
- <Else>
- <SendLabel WDEFAULT>
- <Key %TRIGGER%>
- <EndIf>
- // Target nearest object and use it
- // Oem8 == backquote
- <Hotkey Ctrl Oem8>
- <If ActiveWinIs "LoTRO MAIN">
- <SendLabel WAUX>
- <Key Shift V> // Target Nearest Item
- <Key Shift C> // Use Selection
- <Restore>
- <Else If ActiveWinIs "LoTRO AUX">
- <SendLabel WMAIN>
- <Key Shift V> // Target Nearest Item
- <Key Shift C> // Use Selection
- <Restore>
- <Else>
- <SendLabel WDEFAULT>
- <Key %TRIGGER%>
- <EndIf>
- //=========================================================================
- // lotro-group.hkn
- // HotKeyNet LoTRO GROUP keybindings
- // vim: ts=4
- //=========================================================================
- // ALWAYS-ON HOTKEYS
- // Skills targetting the other player
- <Hotkey F1>
- <If ActiveWinIs "LoTRO MAIN">
- <SendLabel WAUX>
- <Key Shift F4> // Mel: assist Boph
- <Key %TRIGGER%>
- <Restore>
- <Else If ActiveWinIs "LoTRO AUX">
- <SendLabel WMAIN>
- <Key Shift F4> // Daer: assist Boph
- <Key %TRIGGER%>
- <Restore>
- <Else>
- <SendLabel WDEFAULT>
- <Key %TRIGGER%>
- <EndIf>
- <Hotkey F2-F6>
- <If ActiveWinIs "LoTRO MAIN">
- <SendLabel WAUX>
- <Key Ctrl F3> // Mel: target TANK
- <Key %TRIGGER%>
- <Restore>
- <Else If ActiveWinIs "LoTRO AUX">
- <SendLabel WMAIN>
- <Key Shift F4> // Daer: assist Boph
- <Key %TRIGGER%>
- <Restore>
- <Else>
- <SendLabel WDEFAULT>
- <Key %TRIGGER%>
- <EndIf>
- //=========================================================================
- // lotro-1080.hkn
- // HotKeyNet LoTRO 1920x1080 config
- // vim: ts=4
- //=========================================================================
- // WINDOW MINIMIZE/MAXIMIZE TOOLS
- // NB: do this in solo/group file
- // Window Frame dimensions:
- // borders: 8px
- // "caption" (title bar): 30px
- // LoTRO windowed size setting doesn't include the frame unless it is
- // larger than the display resolution in which case it is reduced to fit (Grr)
- // Another option (doesn't work)
- //<SetFramelessWinSizeWithSimulatedMouse 1920 1080 100>
- // Lotro doesn't reset its resolution even when using SimMouse
- // Windowed Full Screen 1920x1080
- // ## This is now unnecessary:
- // set to same size/position as when 1920x1080 is selected:
- // 1904x1042 @ 8,30
- // NB: set in-game Screen Mode to Windowed Full Screen first
- <Hotkey Alt Q>
- <If ActiveWinIs "LoTRO MAIN">
- <TargetWin "LoTRO MAIN">
- <SetWinFrame None>
- // <SetWinRect 8 32 1904 1042 SimMouse>
- <SetWinRect 0 0 1920 1080 SimMouse>
- <SendLabel WMAIN>
- <Text /ui layout load f><Key Enter>
- <Restore>
- <TargetWin "LoTRO AUX">
- <SetWinPos 612 32>
- <Else If ActiveWinIs "LoTRO AUX">
- <TargetWin "LoTRO AUX">
- <SetWinFrame None>
- // <SetWinRect 8 32 1904 1042 SimMouse>
- <SetWinRect 0 0 1920 1080 SimMouse>
- <SendLabel WAUX>
- <Text /ui layout load f><Key Enter>
- <Restore>
- <TargetWin "LoTRO MAIN">
- <SetWinPos 612 32>
- <Else>
- <SendLabel WDEFAULT>
- <Key %TRIGGER%>
- <EndIf>
- // Windowed 1280x720 (1296x758 incl frame)
- // NB: drag the window frame to trigger in-game resolution change
- <Hotkey Alt A>
- <If ActiveWinIs "LoTRO MAIN">
- <TargetWin "LoTRO MAIN">
- <SetWinFrame Caption ThickFrame Border WindowEdge>
- <SetWinRect 0 322 1296 758 SimMouse>
- <TargetWin "LoTRO AUX">
- <SetWinFrame Caption ThickFrame Border WindowEdge>
- <SetWinRect 624 0 1296 758 SimMouse>
- <SendLabel WMAIN, WAUX>
- <Text /ui layout load w><Key Enter>
- <Restore>
- <Else If ActiveWinIs "LoTRO AUX">
- <TargetWin "LoTRO MAIN">
- <SetWinFrame Caption ThickFrame Border WindowEdge>
- <SetWinRect 0 322 1296 758 SimMouse>
- <TargetWin "LoTRO AUX">
- <SetWinFrame Caption ThickFrame Border WindowEdge>
- <SetWinRect 624 0 1296 758 SimMouse>
- <SendLabel WMAIN, WAUX>
- <Text /ui layout load w><Key Enter>
- <Restore>
- <Else>
- <SendLabel WDEFAULT>
- <Key %TRIGGER%>
- <EndIf>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement