Close
Showing results 1 to 4 of 4

Thread: Rift with HKN

Threaded View

  1. #1

    Default Rift with HKN

    Hi,

    I thought I make also a post about how to set up RIFT with HKN if one is interested.

    setup: 2 screens (26 and 24 inch), 2 client windows one per screen, Game clients in windowed and resolution custom

    about MB in the game compared to WOW:
    * no interact with target function (
    * positioning of the gui elements for mouse broadcasts is hell, since you can move like quest text and bags ... accidentally

    HKN:

    * my setup is basically the same as in WOW (in game macro for assist, follow , petattack)
    * I use a NON-FTL setup. If you want this it can be set up very much like the HKN WOW FTL but only using the three modifiers SHIFT ALT CTRL.


    Issues encountered:

    * Game client can not be started automatically like in wow, since it uses a launcher / patcher to start up the game.
    -> start the game manually (<SHIFT ALT CTRL L>)
    -> log in manually with email address and password, PRESS play button
    -> as soon as Rift starts and you see the name of the window change to RIFT you can HKN "attach" to it in my confic <SHIFT ALT CTRL 1> or <SHIFT ALT CTRL 2> depending on which client you start.
    -> select character and play

    * <RemoveWinFrame> does not work with custom resolutions. (1920x1080 is defined by the game and works) (1920x1140 game brings the frame back (haven't played with smaller resolutions on a single screen like a real PiP)

    * All windows needs SendWin and <restore> otherwise no key mods <ALT> <CTRL> can be sent.

    Code:
    //-----------------------------------------------------------
    // DEFINE MAIL LABELS FOR SENDING KEY STROKES.
    //-----------------------------------------------------------
    <Label w1 Local SendWin Rift1>
    <Label w2 Local SendWin Rift2>
    
    //----------------------------------------------------------------
    // Start RIFT
    //----------------------------------------------------------------
    // %1% : Machine
    // %2% : Run Program (not working needs to be started with Patcher)
    // %3% : New Windowname
    
    <Command LaunchAndRename>
      <SendPC %1%>
    //    <Run %2%>
        <WaitForWin "RIFT" 20000>
        <WaitForWinEnabled 20000>
        <SendWinSF "RIFT">
        <RenameTargetWin %3%>
        <RemoveWinFrame>
    
    
    <Command ResizeAndPosition1>
       <SendPC Local>
           <SendWinM %1%>
              <SetWinSize 1920 1080>
              <SetWinPos 0 0>
    
    
    <Command PiP1>
      <SendPC Local>
        <SendWinM %1%>
          <SetWinSize 1920 1080>
          <SetWinPos 0 0>
    
        <SendWinM %2%>
          <SetWinSize 1920 1080>
          <SetWinPos 1920 50>
    
    
    
    //----------------------------------------------------------------
    //Window Switching
    //----------------------------------------------------------------
    <Hotkey F8>
       <PiP1 Rift1 Rift2>
    <Hotkey F9>
       <PiP1 Rift2 Rift1>
    
    
    //----------------------------------------------------------------
    //Start Client
    //----------------------------------------------------------------
    <Hotkey SHIFT ALT CTRL L>
      <Run "E:\Games\RIFT Game\riftpatchlive.exe">
    
    //----------------------------------------------------------------
    // Assign Client
    //----------------------------------------------------------------
    
    // This is to assign newly started game as the first client
    <Hotkey SHIFT ALT CTRL 1>
      <LaunchAndRename Local " " Rift1 7>
      <ResizeAndPosition1>
    
    
    // This is to assign newly started game as the second client
    <Hotkey SHIFT ALT CTRL 2>
      <LaunchAndRename Local " " Rift2 7>
      <ResizeAndPosition1>
    
    //----------------------------------------------------------------
    //Define Key for disabling HotkeyNet
    //----------------------------------------------------------------
    
    <hotkey Pause>
      <SendPC Local>
      <Toggle>
    //    <SetActiveWindowTracking off>
        <TurnHotkeysOff>
      <Toggle>
        <TurnHotkeysOn>
        <SetActiveWindowTracking on>
    
    
    //----------------------------------------------------------------
    //Define Movement Keys for Game
    //----------------------------------------------------------------
    
    //= TEMPLATE VSendKeysSLw:========================================
    // Send Keys to single window with ScrollLockOn
    //
    // %1% : modifier
    // %2% : Key
    // %3% : Wow Window
    
    <Template VSendKeysSLw>
    <Hotkey ScrollLockOn %1% %2%>
      <SendLabel %3%>
      <Key %Trigger%>
      <restore>
    <EndTemplate>
    //================================================================
    
    //= TEMPLATE VSendKeysSL: ========================================
    // Send Keys to all WOW windows with ScrollLockOn
    //
    // %1% : modifier
    // %2% : Key
    
    <Template VSendKeysSL>
    <Hotkey ScrollLockOn %1% %2%>
      <SendLabel w1, w2>
      <Key %Trigger%>
      <restore>
    <EndTemplate>
    //================================================================
    
    
    //= TEMPLATE VSendKeys: ==========================================
    // Send Keys to all WOW windows with ScrollLockOFF
    //
    // %1% : modifier
    // %2% : Key
    
    <Template VSendKeys>
    <Hotkey ScrollLockOff %1% %2%>
      <SendLabel w1, w2>
      <Key %Trigger%>
      <restore>
    <EndTemplate>
    //================================================================
    
    //----------------------------------------------------------------
    // Default Gamine Keys for ALL clients
    //----------------------------------------------------------------
    
    // ---- GAMEKEYS are sent to all clients if Scroll lock is ON
    <KeyList GAMEKEYS O,P,H,L,B,N,K,C, Esc, Comma >
    <ApplyTemplate VSendKeysSL " " "GAMEKEYS" >
    
    
    // ---- CHATKEYS are sent to all clients if Scroll lock is OFF
    <KeyList CHATKEYS Esc, A-Z,0-9,plus,minus, Enter, Backspace, Space, Period, oem2 >
    <ApplyTemplate VSendKeys " " "CHATKEYS" >
    <ApplyTemplate VSendKeys "SHIFT" "CHATKEYS" >
    
    
    //================================================================
    // Multiboxing Keys
    //================================================================
    
    // Follow
    <Hotkey F>
            <SendLabel w2>
              <Key F>
          <restore>
    //assist
    <Hotkey pgup>
            <SendLabel w2>
              <Key pgup>
          <restore>
    //Pet attack
    <Hotkey pgdn>
            <SendLabel w1, w2>
              <Key pgdn>
          <restore>
    //attack spam
    <Hotkey 1>
            <SendLabel w1,w2>
              <Key 1>
          <restore>
    //attack spam
    <Hotkey 2>
            <SendLabel w1,w2>
              <Key 2>
          <restore>
    //----------------------------------------------------------------
    // Define Mousecloning META KEY IS ~
    //----------------------------------------------------------------
    
    <UseKeyAsModifier Oem6>
    
    <Hotkey Oem6 ScrollLockOn LButton, MButton, RButton, button4, button5>
      <SendLabel w1, w2>
        <ClickMouse %TriggerMainKey%>
              <restore>
    
    //----------------------------------------------------------------
    //Define Movement Keys for Game
    //----------------------------------------------------------------
    
    //Main client
    <MovementHotkey ScrollLockOn q,w,e,a,s,d>
            <SendLabel w1>
              <Key %Trigger%>
    
    
    //space to all for flying up and down
    <MovementHotkey ScrollLockOn Space,x>
            <SendLabel w1, w2>
              <Key %Trigger%>
          <restore>
    
    // Move all alts at the same time
    <MovementHotkey ScrollLockOn ctrl A,S,D,Q,W,E>
             <SendLabel w2>
             <key %TriggerMainKey%>
      <restore>
    
    //----------------------------------------------------------------
    //Do when HKN starts
    //----------------------------------------------------------------
    <Command autoexec>
      <SetActiveWindowTracking On>
      <SetActiveWindowTrackingDelay 0>
    Last edited by Bloodcloud : 03-02-2011 at 02:13 PM Reason: SentWin <restore> !!
    I don't suffer from Schizophrenia, I enjoy every moment of it !

Posting Rules

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