How do you set focus on your main window initially? And How do you regain it should it be lost? Does HKN ever freak out and forget what it is suppose to do?
Situation: Running two Lord of the Rings Online clients on the same PC.
Code:
//-----------------------------------------------------------
// PRESS CTRL R TO RENAME WINDOWS IF YOU LAUNCH THEM MANUALLY
//-----------------------------------------------------------
<Hotkey ScrollLockOn Ctrl R>
<SendPC local>
<RenameWin "The Lord of the Rings Online™" W1>
<RenameWin "The Lord of the Rings Online™" W2>
//-----------------------------------------------------------
// DEFINE MAIL LABELS FOR SENDING KEY STROKES
//-----------------------------------------------------------
<Label W1 Local SendWinM W1>
<Label W2 Local SendWinM W2>
//-----------------------------------------------------------
// DEFINE KEY MODIFIERS.
//-----------------------------------------------------------
<UseKeyAsModifier APPS>
<UseKeyAsModifier LWIN>
<UseKeyAsModifier RWIN>
//-----------------------------------------------------------
// PLACE W1 AND W2 IN SAME POSITION
//-----------------------------------------------------------
<HotKey ScrollLockOn LWin P>
<TargetWin W1>
<SetWinPos 300 05>
<Wait 100>
<TargetWin W2>
<SetWinPos 300 05>
//-----------------------------------------------------------
// DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
// SENT TO BOTH WINDOWS. ADD MORE KEY COMBO'S IF YOU WANT.
//-----------------------------------------------------------
<Hotkey ScrollLockOn A-Z, 0-9, Plus, Minus, Delete, Oem3, F1-F12 except W, A, S, D, Q, E>
<SendLabel W1, W2>
<Key %Trigger%>
//-----------------------------------------------------------
// Force extra characters to target party leader during combat.
//-----------------------------------------------------------
<HotKey ScrollLockOn Backspace, Tab>
<SendLabel W1>
<Key %TriggerMainKey%>
<SendLabel W2>
<Key F2>
//-----------------------------------------------------------
// Define movement keys.
//-----------------------------------------------------------
<MovementHotkey ScrollLockOn Space, w, a, s, d, q, e>
<SendLabel W1>
<Key %Trigger%>
//-----------------------------------------------------------
// BROADCAST MOUSE CLICKS. HOLD DOWN APPS (ON U.S. KEYBOARDS,
// THAT'S THE MENU KEY IN THE BOTTOM RIGHT NEXT TO R-CTRL) WHEN YOU
// WANT TO BROADCAST MOUSE CLICKS.
//-----------------------------------------------------------
<Hotkey ScrollLockOn Apps LButton, MButton, RButton>
<SendLabel W1, W2>
<ClickMouse %TriggerMainKey%>
<RestoreMousePos>
//------------------------------------------------------------
// Set extra characters to follow party leader.
//------------------------------------------------------------
<HotKey ScrollLockOn LWin F>
<SendLabel W2>
<Key F2>
<Wait 100>
<Text /follow>
<Wait 100>
<Key Enter>
<Wait 100>
<Text /f Following.>
<Wait 100>
<Key Enter>
// Report which window has focus
<HotKey ScrollLockOn LWin R>
<SendPC Local>
<SendFocusWin>
<Text /f This character has the focus.>
<Wait 80>
<Key Enter>
Connect With Us