Close
Showing results 1 to 2 of 2

Hybrid View

  1. #1

    Default HKN: Window Focus Issues

    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>
    Last edited by Thoreaux : 01-13-2013 at 01:40 PM

  2. #2

    Default

    I haven't played LotRO in a long time, so I'm not up on the specifics of how the game functions anymore, but there's a thread here with a 3 on 1 script. It has a definition in it to set a master window, which I don't see in your script.

    I wouldn't say HotKeyNet ever "forgets" what it's supposed to do. If anything, HotKeyNet can send too many things to the OS which can cause the OS or game to bog down and things can be skipped because they can't keep up. This is most obvious if you have too low of a ClickMouse delay set in your options and you use a lot of ClickMouse actions in rapid succession or in games where the window has to be brought to the foreground to receive inputs. The former can be fixed by adjusting the ClickMouse delays to higher numbers and the latter by either slowing down your spam speed and/or in some cases by inserting small delays in the keys so the client has time to come to the foreground and return.
    Blog : Herding Khats
    Team : Kina - Çroaker - Messkit - Lìfetaker - Wìdowmaker
    Newbie Guides : Multiboxing Vol. 1 - Multiboxing Vol. 2 - HotKeyNet - Jamba
    The Almighty Lax made a liar out of me, apparently I DO get prizes for it.
    *Commences Wielding the Banhammer like there's piñatas up in here and I'm Lady Thor*

    _ Forum search letting you down? Use the custom Google search _

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •