Close
Showing results 1 to 4 of 4

Thread: Rift with HKN

  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 !

  2. #2

    Default

    Thanks for posting this!
    �Author of HotkeyNet and Mojo

  3. #3

    Default 4 boxing Rift with HKN

    Been using HKN for EQ2, WOW, AOC, etc.... and it has been awesome, so now I have started using it to 4 box in RIFT and it works great for me. Its a simple copy and paste setup i have been using for years in all the games, just change the Send commands for whatever game i'm playing. SendWinM works for Rift so that's what i use.
    I have 3 computers that i play 4 accounts on. My main computer has 2 screens and plays 2 of the accounts, the other 2 accounts have their own computer. If you are planning on 3 boxing, 2 boxing, or 5 boxing just add or omit code that is or isn't needed.
    I open up HKN on all the computers and then I start the games. After the game windows are open on all screens, I turn on the Scroll Lock key. Then I press the CTRL+R keys to rename all the windows so that they can except their commands when needed. This is a simple code for mainly broadcasting all your keystrokes to the other characters. You press the 2 key it presses the 2 key on all the other computers and so on. This is great because if you can press the 2 key and have different spells or macros in the number 2 slot for your characters. Example: press the 2 key and the ingame bar slot Number 2 is pressed on all characters, bard's 2 slot=cadence, mage's 2 slot=fireball, cleric's 2 slot=heal, and necro's 2 slot=pet attack and so on. All 4 characters perform a different task even though it is the same key press.
    The FOLLOW AND ASSIST code is an all in one for your characters to autofollow and assist you using an assist macro I make ingame that is activated when you press spacebar. My ingame macro is:
    target playername
    assist playername
    follow playername


    This is my code:

    //-----------------------------------------------------------
    // PRESS CTRL R TO RENAME RIFT WINDOWS IF YOU LAUNCH THEM MANUALLY
    //-----------------------------------------------------------
    <Hotkey ScrollLockOn Ctrl R>
    <SendPC local>
    <RenameWin "RIFT" rift1>
    <SendPC local>
    <RenameWin "RIFT" rift4>
    <sendpc 192.168.1.26>
    <RenameWin "RIFT" rift2>
    <sendpc 192.168.1.28>
    <RenameWin "RIFT" rift3>

    //-----------------------------------------------------------
    // DEFINE MAIL LABELS FOR SENDING KEY STROKES
    //-----------------------------------------------------------
    <Label r1 Local SendWinM rift1>
    <Label r4 Local SendWinM rift4>
    <Label r2 192.168.1.26 SendWinM rift2>
    <Label r3 192.168.1.28 SendWinM rift3>

    //-----------------------------------------------------------
    // DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
    // SENT TO ALL RIFT WINDOWS. ADD MORE KEY COMBO'S IF YOU WANT.
    //-----------------------------------------------------------
    <Hotkey ScrollLockOn A-Z, 0-9, F1-F12, plus, minus, except W, A, S, D, Q, E>
    <SendLabel r1, r2, r3, r4>
    <Key %Trigger%>


    //-----------------------------------------------------------
    // DEFINE MOVEMENT KEYS THAT WILL GET SENT TO RIFT WINDOWS.
    // ADD MORE KEYS IF YOU WANT.
    //-----------------------------------------------------------
    <MovementHotkey ScrollLockOn up, down, left, right>
    <SendLabel r2, r3, r4>
    <Key %Trigger%>

    //-----------------------------------------------------------
    // 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 r1, r2, r3, r4>
    //<ClickMouse %TriggerMainKey%>
    //<restore>


    //-----------------------------------------------------------
    // FOLLOW AND ASSIST (uses assist macro i have in slot + ingame,
    // makes all characters jump so if we are running over rough
    // terrain and they get hung up on something they won't drop off,
    // just spam spacebar and they will jump over everything and
    // continue following)
    //-----------------------------------------------------------
    <Hotkey ScrollLockOn space>
    <SendLabel r1>
    <key space>
    <SendLabel r2, r3, r4>
    <key space>
    <wait 200>
    <key plus>
    <restore>

  4. #4

    Default

    Quote Originally Posted by Bloodcloud View Post
    * All windows needs SendWin and otherwise no key mods can be sent.
    Been redoing my macros a couple of days ago, and ran kinda short of hotkeys. Not being thaaat much into HKN, that info was quite useful, thanks a lot.
    SendWin + restore was causing some hiccups though. Been used to assisting/attacking while moving, which didnt work too well with SendWin, cause I lost focus (am a mousewalker) on my main window for a short time and therefore stop moving.
    My solution was to define labels twice for each Rift client, a SendWin one for alt-combinations (am using them for out of combat stuff, buffs and roleswitching mostly) and another SendWinM one for normal gameplay hotkeys. Works like a charm now.

Posting Rules

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