Not sure what the problem is with the code, but (1) the LOTRO2 and LOTRO3 window just follow each other around and (2) mouseclicks do not duplicate.
Any coders able to help?
(I apologize, but I'm a disabled veteran with a brain injury and lack the capacity for programming. It's all giberish to me).
- Code: Select all
// ----------------------------------------------------------------------------
// Script Name: Lord of the Rings Online Loadout for HotKeyNet
// Creation Date: 12/10/2010
// Last Modified: 12/10/2010
// Author: Cardinal Ximinez
// Purpose: Designed for multiboxing three clients on one PC.
// ----------------------------------------------------------------------------
// Requires HotkeyNet build 208 or higher.
// For more info, go to www.hotkeynet.com
//----------------------------------------------------------------------------
// USAGE:
// Load up and login all 3 copies of LOTRO that you are going to use.
//
// Make sure all copies of LOTRO have the fellowship manuever keys bound to
// the Numberpad.
// (Up arrow = top fellowship maneuver)
// (left arrow = left fellowship maneuver)
// (5 key = fellowship assist)
// (right arrow = right fellowship maneuver)
// (down arrow = bottom fellowship maneuver)
//
// SETUP KEYS:
// Hit CTRL-ALT-X to rename the windows.
//
// Hit Left ALT-F1 (F2/F3) to pick the window that will be your master character.
//
// If the master character is NOT the party leader, then you will have to set
// the master character slot for your followers using Left CTRL F1 (F2/F3).
//
// Turn on SCROLLLOCK to toggle the key broadcasting on.
//
// GAME KEYS:
// Hit CTRL-Z to have your slaves assist follow the master.
//
// Hit CTRL-X to have your slaves and master loot nearby corpses.
//(UPDATE: Your master window will loot first can be changed if you
// need room in the main accounts bags)
//
// Hit CTRL-A to have your slaves and master pickup nearby items.
//
// Hit CRTL-s to have your slaves assist your master in combat.
//----------------------------------------------------------------------------
//-----------------------------------------------------------
// PRESS CTRL-ALT-X TO RENAME LOTRO'S AFTER LAUNCH
//-----------------------------------------------------------
<Hotkey ALT Ctrl X>
<SendPC local>
<RenameWin "The Lord of the Rings Online™: Rise of Isengard™" "LOTRO1">
<RenameWin "The Lord of the Rings Online™: Rise of Isengard™" "LOTRO2">
<RenameWin "The Lord of the Rings Online™: Rise of Isengard™" "LOTRO3">
//-----------------------------------------------------------
// PRESS CTRL-ALT-R TO RESET LOTRO'S AFTER LAUNCH
//-----------------------------------------------------------
<Hotkey ALT Ctrl R>
<SendPC local>
<RenameWin "LOTRO1" "The Lord of the Rings Online™: Rise of Isengard™">
<RenameWin "LOTRO2" "The Lord of the Rings Online™: Rise of Isengard™">
<RenameWin "LOTRO3" "The Lord of the Rings Online™: Rise of Isengard™">
//-----------------------------------------------------------
// DEFINE MAIL LABELS FOR SENDING KEY STROKES
//-----------------------------------------------------------
<Label W1 Local SendWin "LOTRO1">
<Label W2 Local SendWin "LOTRO2">
<Label W3 Local SendWin "LOTRO3">
//-----------------------------------------------------------
// DEFINE VARIABLE FOR WHICH WINDOW IS MAIN
//-----------------------------------------------------------
<hotkey LAlt F1>
<setvar MainWin W1>
<setvar W1Master F1> // Reset Master Target To Self
<setvar W2Master F2> // Default Slave 1 To Party Leader
<setvar W2Master F3> // Default Slave 2 To Party Leader
<hotkey LAlt F2>
<setvar MainWin W2>
<setvar W2Master F1> // Reset Master Target To Self
<setvar W1Master F2> // Default Slave 2 To Party Leader
//-----------------------------------------------------------
// SET THE MASTER CHARACTER TO FOLLOW - MACRO
//-----------------------------------------------------------
<Template SetMaster>
<Toggle>
<setvar %1% F1> // Not Following = Reset Follow Target To Self
<Toggle>
<setvar %1% F2> // Follow Party Leader
<Toggle>
<setvar %1% F3> // Follow Party Member 3
<Toggle>
<setvar %1% F4> // Follow Party Member 4
<Toggle>
<setvar %1% F5> // Follow Party Member 5
<Toggle>
<setvar %1% F6> // Follow Party Member 6
<EndTemplate>
//-----------------------------------------------------------
// TARGET THE MASTER CHARACTER TO FOLLOW - MACRO
// F1 - Target Self - Prevents Following Pets
// F2 - Target Party Leader
// F3-F6 - Target Others In Fellowship
//-----------------------------------------------------------
<Template TargetMaster>
<SendLabel %1%>
<if %2% is F2>
<Key F1> // Always Target Self First
<wait 100>
<Key F2> // Follow Party Leader
<wait 100>
<else if %2% is F3>
<Key F1> // Always Target Self First
<wait 100>
<Key F3> // Follow Party Member 3
<wait 100>
<else if %2% is F4>
<Key F1> // Always Target Self First
<wait 100>
<Key F4> // Follow Party Member 4
<wait 100>
<else if %2% is F5>
<Key F1> // Always Target Self First
<wait 100>
<Key F5> // Follow Party Member 5
<wait 100>
<else if %2% is F6>
<Key F1> // Always Target Self First
<wait 100>
<Key F6> // Follow Party Member 6
<wait 100>
<endif>
<EndTemplate>
//-----------------------------------------------------------
// ALL TARGET THE MASTER CHARACTER - MACRO
//-----------------------------------------------------------
<Template AllTargetMaster>
<ApplyTemplate TargetMAster W2 W2Master>
<ApplyTemplate TargetMAster W1 W1Master>
<if MainWin is W1>
<SendLabel W1>
<SendFocusWin>
<else if MainWin is W2>
<SendLabel W2>
<SendFocusWin>
<endif>
<EndTemplate>
//-----------------------------------------------------------
// SET THE MASTER CHARACTER TO FOLLOW FOR EACH WINDOW
//-----------------------------------------------------------
<hotkey LCtrl F1>
<ApplyTemplate SetMaster W1Master>
<SendLabel W1>
<Text /f Now Following ;target>
<Wait 100>
<Key Enter>
<hotkey LCtrl F2>
<ApplyTemplate SetMaster W2Master>
<SendLabel W2>
<Text /f Now Following ;target>
<Wait 100>
<Key Enter>
<hotkey LCtrl F8>
<DisplayVars>
<HotKey LCTrl F9>
<ApplyTemplate AllTargetMaster>
//-----------------------------------------------------------
// DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
// SENT TO BOTH WINDOWS. ADD MORE KEY COMBO'S IF YOU WANT
//-----------------------------------------------------------
<KeyList MyKeyList 0-9, Plus, Minus, F1-F12>
<KeyList MyNumPad NumpadHome, NumpadUp, NumpadPgUp, NumpadLeft, Clear, NumpadRight, NumpadEnd, NumpadDown, NumpadPgDn>
<Hotkey ScrollLockOn MyKeyList; ScrollLockOn SHIFT MyKeyList; ScrollLockOn CTRL MyKeyList; ScrollLockOn ALT MyKeyList>
<if MainWin is W1>
<SendLabel W2, W1>
<Key %Trigger%>
<else if MainWin is W2>
<SendLabel W1, W2>
<Key %Trigger%>
//-----------------------------------------------------------
// EXTRA TOON WILL TARGET MASTER AND AUTOFOLLOW
// AllTargetLeader - Target Self And Then Target Master
//-----------------------------------------------------------
<Hotkey ScrollLockOn Ctrl Z>
<ApplyTemplate AllTargetMaster>
<if MainWin is W1>
<SendLabel W2>
<Text /follow>
<Wait 100>
<Key Enter>
<SendLabel W1>
<SendFocusWin>
<else if MainWin is W2>
<SendLabel W1>
<Text /follow>
<Wait 100>
<Key Enter>
<SendLabel W2>
<SendFocusWin>
<endif>
//-----------------------------------------------------------
// EXTRA TOONS WILL AUTO LOOT CLOSEST TARGET.
// F10 - Target nearest foe (alive or dead)
// U - Use Key
// AllTargetMaster - Re-Target Master
//-----------------------------------------------------------
<Hotkey ScrollLockOn Ctrl X>
<if MainWin is W1>
<SendLabel W1, W2>
<Key F10>
<Wait 100>
<Key U>
<Wait 100>
<SendLabel W1>
<SendFocusWin>
<else if MainWin is W2>
<SendLabel W1, W2>
<Key F10>
<Wait 100>
<Key U>
<Wait 100>
<SendLabel W1>
<SendFocusWin>
<endif>
<ApplyTemplate AllTargetMaster>
//-----------------------------------------------------------
// EXTRA TOONS WILL AUTO GATHER CLOSEST ITEM.
// Delete - Target nearest item
// U - Use Key
// AllTargetMaster - Re-Target Master
//-----------------------------------------------------------
<Hotkey ScrollLockOn Ctrl A>
<if MainWin is W1>
<SendLabel W2, W1>
<Key Delete>
<Wait 100>
<Key U>
<Wait 100>
<else if MainWin is W2>
<SendLabel W1, W2>
<Key Delete>
<Wait 100>
<Key U>
<Wait 100>
<endif>
<ApplyTemplate AllTargetMaster>
//-----------------------------------------------------------
// FELLOWSHIP MANUEVER - STRAIGHT
// NumpadUp - Red - RRR - 'Resounding Strikes'
// NumpadLeft - Blue - BBB - 'Three Pronged Assault'
// Clear - Fellowship Assist (Click Target Window)
// NumpadRight - Green - GGG - 'Muster The Troops'
// NumpadDown - Yellow - YYY - 'Deception'
//-----------------------------------------------------------
<Hotkey ScrollLockOn NumpadUp, NumpadLeft, NumpadRight, NumpadDown>
<if MainWin is W1>
<SendLabel W2>
<Key Clear>
<SendLabel W2, W1>
<Wait 250>
<Key %Trigger%>
<else if MainWin is W2>
<SendLabel W1>
<Key Clear>
<SendLabel W1, W2>
<Wait 250>
<Key %Trigger%>
<endif>
//-----------------------------------------------------------
// BROADCAST MOUSE CLICKS. HOLD DOWN OEM3 (ON U.S. KEYBOARDS,
// THAT'S THE SQUIGGLE KEY IN UPPPER LEFT CORNER) WHEN YOU
// WANT TO BROADCAST.
//-----------------------------------------------------------
//<UseKeyAsModifier Oem3>
//<Hotkey ScrollLockOn Oem3 LButton, MButton, RButton, Button4, Button5>
//<SendLabel W2, W1>
// <ClickMouse %TriggerMainKey%>
<Template TargetAssist>
<if MainWin is W1>
<SendLabel W2>
<key f1>
<key f2>
<key f>
<SendLabel W1>
<SendFocusWin>
<else if MainWin is W2>
<SendLabel W1>
<key f1>
<key f2>
<key f>
<SendLabel W2>
<SendFocusWin>
<endif>
<EndTemplate>
<hotkey ScrollLockOn ctrl s>
<applytemplate TargetAssist>
<UseKeyAsModifier g>
<Hotkey g LButton, MButton, RButton>
<SendLabel w1, w2, w3, w4, w5>
<ClickMouse %TriggerMainKey%>