Close
Showing results 1 to 8 of 8
  1. #1

    Default HKN Mouse Shift Modifiers

    Hi, I'm new to HKN and am using the sample two on one script. Did some tweaking of it, but now am trying to figure out how to have mouse mapping for my 4 and 5 buttons on my mouse, as well as the 4 and 5 buttons on the mouse with shift as a modifier. Having a little trouble with my script. What happens is sometimes when I press shift button4, it will instead activate button4. Any HotKeyNet script gurus have any idea what I'm doing wrong? I'm using my NumLock as my hotkey, as my keyboard has scroll lock as a seperate mode button.

    //================================================== ==============
    // SAMPLE SCRIPT FOR TWO WOW'S ON ONE PC
    //
    // Instructions: Copy this entire script (all the blue writing
    // on gray background including comments). Save it in a file.
    // Load it into HotkeyNet.
    //
    // Toggle the scroll lock key to turn hotkeys off and on. (You
    // can change this if you want, just like you can change
    // everything else with HotkeyNet.)
    //
    // Requires HotkeyNet build 147 or higher.
    //
    // For more info, go to www.hotkeynet.com
    //================================================== ==============

    //-----------------------------------------------------------
    // PRESS CTRL R TO RENAME WOW'S IF YOU LAUNCH THEM MANUALLY
    //-----------------------------------------------------------
    <Hotkey NumLockOn Ctrl R>
    <SendPC local>
    <RenameWin "World of Warcraft" WoW1>
    <RenameWin "World of Warcraft" WoW2>

    //-----------------------------------------------------------
    // SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
    //-----------------------------------------------------------
    <Command LaunchAndRename>
    <SendPC Local>
    <Run "c:\Mick\World of Warcraft\Wow.exe">
    <RenameTargetWin WoW1>
    <Command LaunchAndRename>
    <SendPC Local>
    <Run "c:\Mick\World of Warcraft\Wow.exe">
    <RenameTargetWin WoW2>
    //-----------------------------------------------------------
    // HOTKEY TO LAUNCH AND RENAME BOTH WOW'S.
    //-----------------------------------------------------------
    <Hotkey NumLockOn Alt Ctrl L>
    <LaunchAndRename Local "c:\Mick\World of Warcraft\Wow.exe" WoW1>
    <LaunchAndRename Local "c:\Mick\World of Warcraft\Wow.exe" WoW2>

    //-----------------------------------------------------------
    // DEFINE MAIL LABELS FOR SENDING KEY STROKES
    //-----------------------------------------------------------
    <Label w1 Local SendWinM WoW1>
    <Label w2 Local SendWinM WoW2>

    //-----------------------------------------------------------
    // DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
    // SENT TO BOTH WOWS. ADD MORE KEY COMBO'S IF YOU WANT.
    //-----------------------------------------------------------
    <Hotkey NumLockOn A-Z, 0-9, Multiply, Minus, Backspace, Enter, Oem2, Oem5, Oem6, NumpadEnter, F1-F12, Esc, except W, A, S, D, Q, E>
    <SendLabel w1, w2>
    <Key %Trigger%>

    //-----------------------------------------------------------
    // DEFINE MOVEMENT KEYS THAT WILL GET SENT TO BOTH WOW'S.
    // ADD MORE KEYS IF YOU WANT.
    //-----------------------------------------------------------
    <MovementHotkey NumLockOn up, down, left, right>
    <SendLabel w1, w2>
    <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.
    //-----------------------------------------------------------
    <Hotkey NumLockOn Button4, Button5>
    <SendLabel w1, w2>
    <ClickMouse %TriggerMainKey%>

    <Hotkey NumLockOn Shift Button4, Button5>
    <SendLabel w1, w2>
    <KeyDown Shift>
    <ClickMouse %TriggerMainKey%>
    <KeyUp Shift>


    Also, it won't auto run or anything, but I don't really care too much about that, as I play with two monitors on one PC. I just more want to be able to translate key and mouse clicks to both programs. Was using KeyClone, but have been having problems with the mouse-mapping and the fact that it won't accept mouse clicks in the set up sometimes, but I am waiting for word about that problem, so I'm using HKN until then, but it seems to mostly do all I need it to do. Thanks again for any help =)

  2. #2

    Default

    First, I'd want to know what you are trying to do with the keys. The way you have it set up, it is always going to send those mouse buttons, which can get very messy.

    Second, there's two different commands. %TriggerMainKey% and %Trigger%. The first only sends the main, unmodified key. The second sends a modified key.

    http://www.hotkeynet.com/ref/trigger.html

    You may want to take a look at my HotKeyNet guide and make sure to take a look at the extra stuff I linked in the "More Stuff" section at the bottom.
    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 _

  3. #3

    Default

    Quote Originally Posted by Maddkow View Post
    What happens is sometimes when I press shift button4, it will instead activate button4.
    In this case, you can solve the problem like this, provided that you hold down the shift key until HotkeyNet finishes clicking. In this case the trigger (what you do with your fingers) and the output (what you send to WoW) are the same.

    Code:
    <Hotkey NumLockOn Shift Button4, Button5>
       <SetLocal ClearModifiers off>
       <SendLabel w1, w2> 
          <ClickMouse %TriggerMainKey%>
    You can also make it work the way you tried except that you need to use SendWin or SendFocusWin (not SendWinM) to send the Shift events. Also, you only need to send Shift events once for both WoWs. And you may also need short delays between the key events and <ClickMouse>.

    Code:
    <Hotkey NumLockOn Shift Button4, Button5>
       <SendFocusWin>
          <KeyDown Shift>
          <Wait 20>  // MAY NOT BE NECESSARY
       <SendLabel w1, w2> 
          <ClickMouse %TriggerMainKey%>
       <SendFocusWin>
          <Wait 20> // MAY NOT BE NECESSARY
          <KeyUp Shift>
    Also, it won't auto run or anything...
    I don't know what you mean. If you mean that you want HotkeyNet to do something automatically when it starts up, write a command called "AutoExec."
    Last edited by Freddie : 08-11-2011 at 06:02 AM
    �Author of HotkeyNet and Mojo

  4. #4

    Default

    Khatovar - What I have my mouse buttons set for is they are bound to the bottom left action buttons 1 through 4, and I use them for keys for commonly used spells or items. I have them bound for the convenience of having interchangeable actions that are already set to a readily available button, and have them bound across all toons. Great for dual boxing goblin hunters and having Rocket Jump, Concussive Shot, and Disengage bound to my mouse buttons. Also, changing my shift modifier script to
    Code:
    <Hotkey NumLockOn Shift Button4, Button5>
    <SendLabel w1, w2> 
    <KeyDown Shift>
    <ClickMouse %Trigger%>
    <KeyUp Shift>
    did nothing for me.

    Freddie - Both of those scripts didn't work for me. With both of them, my WoW1 would use the modified mouse button, but it would broadcast an unmodified mouse button to WoW2. Don't know what I'm doing wrong. Tried to read up on this stuff, but just started using HKN a couple days ago, and a lot of it is kind of confusing, but I'm starting to get the hang of it. What I was talking about for the auto run was how to use HKN to open wow for me, but I figured out to use the hotkey, only problem is that it opens up four windows and names two WoW1 and the other two as WoW2. So far I just quit out of the last two that load, but I have no idea why it is opening two copies of each.

    To both of you, many thanks for the prompt response. I apologize if some of this stuff has been answered before, but I couldn't find it, or at least much that I could make sense of. Seems like a really nice program that does pretty much all that I want. Now if I could just get that shift modifier working for me so I can kick butt in pvp on my hunters again.

  5. #5

    Default

    From your description, it sounds like

    1. you put spells on your hotbar in slots 1-4
    2. you then bound those spells to your mouse buttons
    3. You're now trying to call those spells via the mouse buttons as if they are normal 1-4 keys

    That's not what your code is doing. You're calling clickmouse, which is the same thing as literally clicking your mouse within the game environment. What it does in HKN is looks at where your mouse is located within the game, then in rapid succession, clicks your mouse in that location in each window.

    If all you want to do is use mousebuttons just like regular hotkeys

    1. Put the spells on the hotbar
    2. change the keybindings in game to use the proper mouse button
    3. add the mouse buttons to your hotkey definitions

    Code:
    //-----------------------------------------------------------
     // DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
     // SENT TO BOTH WOWS. ADD MORE KEY COMBO'S IF YOU WANT. 
     //-----------------------------------------------------------
     <Hotkey NumLockOn A-Z, 0-9, Multiply, Minus, Backspace, Enter, Oem2, Oem5, Oem6, NumpadEnter, F1-F12, Esc, Button4, Button5, except W, A, S, D, Q, E>
     <SendLabel w1, w2>
     <Key %Trigger%>
    I would probably take it a step further and use a keylist and add modified lists

    Code:
    //-----------------------------------------------------------
     // DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
     // SENT TO BOTH WOWS. ADD MORE KEY COMBO'S IF YOU WANT. 
     //-----------------------------------------------------------
     <KeyList MyList A-Z, 0-9, Multiply, Minus, Backspace, Enter, Oem2, Oem5, Oem6, NumpadEnter, F1-F12, Esc, Button4, Button5, except W, A, S, D, Q, E>
    
    <Hotkey NumLockOn MyList; NumLockOn Shift MyList; NumLockOn Alt MyList; NumLockOn Ctrl MyList>
    	  	 <SendLabel w1, w2>
       	<Key %Trigger%>
    Then delete all this -

    Code:
    //-----------------------------------------------------------
     // BROADCAST MOUSE CLICKS. HOLD DOWN OEM3 (ON U.S. KEYBOARDS,
     // THAT'S THE SQUIGGLE KEY IN UPPPER LEFT CORNER) WHEN YOU 
     // WANT TO BROADCAST.
     //-----------------------------------------------------------
     <Hotkey NumLockOn Button4, Button5>
     <SendLabel w1, w2> 
     <ClickMouse %TriggerMainKey%>
    
     <Hotkey NumLockOn Shift Button4, Button5>
     <SendLabel w1, w2> 
     <KeyDown Shift>
     <ClickMouse %TriggerMainKey%>
     <KeyUp Shift>
    Finally, try going into HotKeyNet > Options > Send Mode Settings

    1. Uncheck "Clear modifiers before executing hotkey"
    2. Under "delays between modifiers and main keys", select "Delays (milliseconds)" and try 1 1. Increase if you need to.

    I've got images of my HKN settings at the below links.

    http://genus-industri.us/images/mb/random/hkn1.jpg
    http://genus-industri.us/images/mb/random/hkn2.jpg

    If, however, you are trying to actually click things on your action bar to multibox, I would highly advise against it. Multiboxing is much more effective if you use hotkeys to play and reserve click actions for things like healing using Healbot/Grid/whatever, portal use, ground targeting and quest items. Because clickmouse actually moves between windows while you use it, you will likely run into issues with the mouse getting stuck on your slave window, which can make things extremely clunky.
    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 _

  6. #6

    Default

    It's not the 1 - 4 keys that I have keybound to my mouse buttons, it is the ones above those, when you have all action bars up. The reason I want to be able to use my mouse buttons with a shift modifier is that it is a couple extra buttons for me to have to use, and they are also very convenient to use for pvp. More convenient than using an F key. But I kinda understand what you are explaining to me. I'll try it out after work tomorrow and see if I can get it working the way I want to now. Thanks again.

    Reloaded the script. I now have
    Code:
    //================================================================
    // SAMPLE SCRIPT FOR TWO WOW'S ON ONE PC 
    //
    // Instructions: Copy this entire script (all the blue writing
    // on gray background including comments). Save it in a file. 
    // Load it into HotkeyNet.
    //
    // Toggle the scroll lock key to turn hotkeys off and on. (You 
    // can change this if you want, just like you can change 
    // everything else with HotkeyNet.) 
    //
    // Requires HotkeyNet build 147 or higher.
    // 
    // For more info, go to www.hotkeynet.com 
    //================================================================
    
    //-----------------------------------------------------------
    // PRESS CTRL R TO RENAME WOW'S IF YOU LAUNCH THEM MANUALLY 
    //-----------------------------------------------------------
    <Hotkey NumLockOn Ctrl R>
        <SendPC local>
            <RenameWin "World of Warcraft" WoW1> 
            <RenameWin "World of Warcraft" WoW2> 
    
    //-----------------------------------------------------------
    // SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
    //-----------------------------------------------------------
    <Command LaunchAndRename>
       <SendPC Local> 
          <Run "c:\Mick\World of Warcraft\Wow.exe">
            <RenameTargetWin WoW1>
    <Command LaunchAndRename>
       <SendPC Local> 
          <Run "c:\Mick\World of Warcraft\Wow.exe">
            <RenameTargetWin WoW2>
    //-----------------------------------------------------------
    // HOTKEY TO LAUNCH AND RENAME BOTH WOW'S.
    //-----------------------------------------------------------
    <Hotkey NumLockOn Alt Ctrl L>
        <LaunchAndRename Local WoW1>
        <LaunchAndRename Local WoW2>
    
    //-----------------------------------------------------------
    // DEFINE MAIL LABELS FOR SENDING KEY STROKES 
    //-----------------------------------------------------------
    <Label w1 Local SendWinM WoW1>
    <Label w2 Local SendWinM WoW2>
    
    //-----------------------------------------------------------
    // DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
    // SENT TO BOTH WOWS. ADD MORE KEY COMBO'S IF YOU WANT. 
    //-----------------------------------------------------------
    <KeyList MyList A-Z, 0-9, Multiply, Plus, Minus, Backspace, Enter, Oem2, Oem5, Oem6, NumpadEnter, Space, F1-F12, Esc, Button4, Button5, except W, A, S, D, Q, E>
    
    <Hotkey NumLockOn MyList; NumLockOn Shift MyList; NumLockOn Alt MyList; NumLockOn Ctrl MyList>
    	  	 <SendLabel w1, w2>
       	<Key %Trigger%>
    
    //-----------------------------------------------------------
    // DEFINE MOVEMENT KEYS THAT WILL GET SENT TO BOTH WOW'S.
    // ADD MORE KEYS IF YOU WANT. 
    //-----------------------------------------------------------
    <MovementHotkey NumLockOn up, down, left, right>
    <SendLabel w1, w2>
    <Key %Trigger%>
    Which Gives me
    Code:
    	Disregarding empty hotkey: <Hotkey NumLockOn M>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift M>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt M>
    	Disregarding empty hotkey: <Hotkey NumLockOn Ctrl M>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn N>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift N>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt N>
    	Disregarding empty hotkey: <Hotkey NumLockOn Ctrl N>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn O>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift O>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt O>
    	Disregarding empty hotkey: <Hotkey NumLockOn Ctrl O>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn P>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift P>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt P>
    	Disregarding empty hotkey: <Hotkey NumLockOn Ctrl P>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn R>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift R>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt R>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn T>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift T>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt T>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn U>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift U>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt U>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn V>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift V>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt V>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn X>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift X>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt X>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn Y>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift Y>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt Y>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn Z>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift Z>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt Z>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn Multiply>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift Multiply>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt Multiply>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn F1>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift F1>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt F1>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn F2>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift F2>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt F2>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn F3>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift F3>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt F3>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn F4>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift F4>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt F4>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn F5>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift F5>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt F5>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn F6>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift F6>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt F6>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn F7>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift F7>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt F7>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn F8>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift F8>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt F8>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn F9>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift F9>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt F9>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn F10>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift F10>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt F10>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn F11>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift F11>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt F11>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn F12>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift F12>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt F12>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn Plus>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift Plus>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt Plus>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn Minus>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift Minus>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt Minus>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn Oem2>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift Oem2>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt Oem2>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn Oem5>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift Oem5>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt Oem5>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn Oem6>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift Oem6>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt Oem6>
    
    Empty hotkeys were found.
    	Disregarding empty hotkey: <Hotkey NumLockOn NumpadEnter>
    	Disregarding empty hotkey: <Hotkey NumLockOn Shift NumpadEnter>
    	Disregarding empty hotkey: <Hotkey NumLockOn Alt NumpadEnter>
    
    Finished loading hotkey file.
    	195 errors were found
    	11 definitions were loaded
    	0 keys will be used as modifiers
    
    Installing mouse hook
    	Hook installation succeeded
    I am now officially even more confused, and so I am going to bed. I shall tackle this tomorrow.
    Last edited by Maddkow : 08-12-2011 at 06:15 AM

  7. #7

    Default

    Ok, I copied your script exactly. I overlooked the fact that I have mine configured with a toggle to alternate between sending certain keys vs all keys. I fixed it below. Color coding so you can see what I'm talking about in relation to where it is in the script.

    More stuff -

    Your LaunchAndRename is messed up. It is launching and renaming a total of 4 WoWs {twice from each location, WoW1, WoW2, WoW1, WoW2}, just like Nikita was seeing here. Don't call run from the LaunchandRename subroutine, use arguements.

    You currently are telling NumLockOn Alt Ctrl L to run all the stuff under "SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW" {launch and rename the master account, then launch and rename the slave account} twice.

    You do not have a hotkey to pause your broadcasting. I would suggest adding one so you can type in chat without spamming the hell out of everyone with your slave.

    I'd also suggest adding resizing and positioning to your script {Link} and using an "if" statement to allow you to quickly relaunch a window if only one crashes.

    Finally, I've done some testing and looked around a bit and it seems WoW has some issues with Mouse Button4 and Button5. However, HKN still sees the correct commands. I would suggest simply skipping over WoW's issues and making Shift+Button4/5 spit out a different button to WoW by defining it separately.

    So, to sum up, this is the code I would use

    Code:
    //================================================================
    // SAMPLE SCRIPT FOR TWO WOW'S ON ONE PC 
    //
    // Instructions: Copy this entire script (all the blue writing
    // on gray background including comments). Save it in a file. 
    // Load it into HotkeyNet.
    //
    // Toggle the scroll lock key to turn hotkeys off and on. (You 
    // can change this if you want, just like you can change 
    // everything else with HotkeyNet.) 
    //
    // Requires HotkeyNet build 147 or higher.
    // 
    // For more info, go to www.hotkeynet.com 
    //================================================================
    //----------------------------------------------------------
    // 	SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
    //----------------------------------------------------------
    //*
    <Command LaunchAndRename>
    <SendPC %1%>
    <Run %2%>
    <RenameTargetWin %3%>
    <RemoveWinFrame>
    
    //-----------------------------------------------------------
    // PRESS CTRL R TO RENAME WOW'S IF YOU LAUNCH THEM MANUALLY 
    //-----------------------------------------------------------
    <Hotkey NumLockOn Ctrl R>
        <SendPC local>
            <RenameWin "World of Warcraft" WoW1> 
            <RenameWin "World of Warcraft" WoW2> 
    
    		
    //----------------------------------------------------------
    // 	SUBROUTINE TO Position Windows for 5 boxing.
    // YOU WILL NEED TO ADJUST THIS TO SIZES YOU WANT - SEE HERE
    // 
    //----------------------------------------------------------
    //*
    <Command ResizeAndPosition>
    	<SendPC Local>
    		<SendWinM %1%>
    			<SetWinRect 0 0 1920 1050>              
    		<SendWinM %2%>
    			<SetWinRect 1920 370 520 355>
    
    //-----------------------------------------------------------
    // HOTKEY TO LAUNCH AND RENAME BOTH WOW'S.
    //-----------------------------------------------------------
    <Hotkey NumLockOn Alt Ctrl L>
    		<if WinDoesNotExist WoW1>
    			<LaunchAndRename Local "c:\Mick\World of Warcraft\Wow.exe" WoW1>
    				<endif>
    		<if WinDoesNotExist WoW2>
    			<LaunchAndRename Local "c:\Mick\World of Warcraft\Wow.exe" WoW2>
    				<endif>
    <ResizeAndPosition WoW1 WoW2>
    
    //-----------------------------------------------------------
    // DEFINE MAIL LABELS FOR SENDING KEY STROKES 
    //-----------------------------------------------------------
    <Label w1 Local SendWinM WoW1>
    <Label w2 Local SendWinM WoW2>
    
    //----------------------------------------------------------
    //	TOGGLE HKN MUTE
    //----------------------------------------------------------
    //*
    <hotkey Pause>
    	<sendpc local>
    	<ToggleHotkeys>
    
    //-----------------------------------------------------------
    // DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
    // SENT TO BOTH WOWS. ADD MORE KEY COMBO'S IF YOU WANT. 
    //-----------------------------------------------------------
    <KeyList MyList A-Z, 0-9, Multiply, Plus, Minus, Backspace, Enter, Oem2, Oem5, Oem6, NumpadEnter, Space, F1-F12, Esc, except W, A, S, D, Q, E>
    
    <Hotkey MyList; Shift MyList; Alt MyList; Ctrl MyList>
    	  	 <SendLabel w1, w2>
       	<Key %Trigger%>
    
    //-----------------------------------------------------------
    // DEFINE MOVEMENT KEYS THAT WILL GET SENT TO BOTH WOW'S.
    // ADD MORE KEYS IF YOU WANT. 
    //-----------------------------------------------------------
    <MovementHotkey NumLockOn up, down, left, right>
    <SendLabel w1, w2>
    <Key %Trigger%>
    
    //-----------------------------------------------------------
    // DEFINE KEYS THAT WOW IS BEING DIFFICULT ABOUT. 
    // CHANGE "Key Ctrl 1" "Key Ctrl 2" "Key Ctrl Shift 1" "Key Ctrl Shift 2" TO WHATEVER YOU WANT
    // DON'T USE BUTTON4/5 OR ALT F4!!
    //-----------------------------------------------------------
    <Hotkey Button4>
    	<SendLabel w1, w2>
    			<Key Ctrl 1>
    					
    <Hotkey Button5>
    	<SendLabel w1, w2>
    		<Key Ctrl 2>
    
    <Hotkey Shift Button4>
    	<SendLabel w1, w2>
    		<Key Ctrl Shift 1>
    					
    <Hotkey Shift Button5>
    	<SendLabel w1, w2>
    		<Key Ctrl Shift 2>
    Last edited by Khatovar : 08-12-2011 at 08:44 AM
    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 _

  8. #8

    Default

    Works great now! Was really confused about the arguments and whatnot, but I've got a decent handle on most of it now. Only things are I took out the <RemoveWinFrame> and also the resize and reposition. I use two screens, but my primary is on the right which is a 1920 x 1080, and my secondary on the left, which is a 1024 x 768. Plus, I don't mind having to manually resize and reposition my windows. Other than that, I can see where I was being stupid, and am much appreciative of all the help. Hopefully this will solve any problems for others that are new to HotKeyNet

Posting Rules

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