Log in

View Full Version : [HotKeyNet] Spread Slaves Out



Mootallica
12-03-2010, 06:11 PM
I've been searching for a solution, I'm sure it's been posted before. In hotkeynet, how can I make slave1 and slave2 move away from eachother.

this is what I've tried, and it's not working.


//----------------------------------------------------------------
//Formation 1
//----------------------------------------------------------------
<Hotkey ScrollLockOn Shift Ctrl 1>
<SendLabel w2>
<Key Left >
<Key Left >
<Key Down >
<Key Down>
<SendLabel w3>
<Key Right >
<Key Right >
<Key Down>
<Key Down>


I get no errors, and it displays all keys being sent correctly, but the slaves aren't doing anything.. What am I missing?

Owltoid
12-03-2010, 06:17 PM
It's been awhile since my HKN days, but I'm pretty sure your problem is you don't have the keys defined as movement keys in HKN. I don't remember the command, but basically it's not holding down the key like you want, and I stead just pushing it for a fraction of a second. Find that command and you'll be golden.

Mukade
12-03-2010, 08:15 PM
//----------------------------------------------------------------
//Formation 1
//----------------------------------------------------------------
<Hotkey ScrollLockOn Shift Ctrl 1>
<SendLabel w2>
<KeyDown Left>
<KeyDown Down>
<SendLabel w3>
<KeyDown Right>
<KeyDown Down>

<HotkeyUp ScrollLockOn Shift Ctrl 1>
<SendLabel w2>
<KeyUp Left>
<KeyUp Down>
<SendLabel w3>
<KeyUp Right>
<KeyUp Down>

EaTCarbS
12-03-2010, 08:30 PM
<MovementHotkey NumLockOn left, right, up, down>
<SendLabel wx, w1, w2, w3, w4, w5, w6, w7, w8, w9>
<Key %Trigger%>

Mukade
12-03-2010, 11:00 PM
OK, so I'm still using the old method:



//----------------------------------------------------------------
//Formation 1
//----------------------------------------------------------------
<MovementHotkey ScrollLockOn Shift Ctrl 1>
<SendLabel w2>
<Key Left>
<Key Down>
<SendLabel w3>
<Key Right>
<Key Down>


The OP didn't ask for a script to move his characters in the same direction simultaneously, he wants them moving in different directions.

EaTCarbS
12-03-2010, 11:11 PM
The OP didn't ask for a script to move his characters in the same direction simultaneously, he wants them moving in different directions.

saw that after I posted >.<

Owltoid
12-03-2010, 11:47 PM
EaTCarbS' response was still useful since it showed the "MovementHotkey" command, which is the best way to do what the OP is requesting.

Mootallica
12-04-2010, 11:03 PM
//----------------------------------------------------------------
//Formation 1
//----------------------------------------------------------------
<Hotkey ScrollLockOn Shift Ctrl 1>
<SendLabel w2>
<KeyDown Left>
<KeyDown Down>
<SendLabel w3>
<KeyDown Right>
<KeyDown Down>

<HotkeyUp ScrollLockOn Shift Ctrl 1>
<SendLabel w2>
<KeyUp Left>
<KeyUp Down>
<SendLabel w3>
<KeyUp Right>
<KeyUp Down>






Thanks for the help guys.. This is exactly what I was looking for!

tldr
03-12-2013, 06:41 PM
Okay so this thread is 3 years old now, but I had recently been exploring this sort of "formation" movement myself. I thought you could use mouse clicks in conjunction with click-to-move on the slaves to do it but so far haven't had any luck. So far, I've tried the following:


<Hotkey ScrollLockOn Oem1>
<SendLabel w2>
<ClickMouse RButton Both Window 50% 50%>
<SendLabel w3>
<ClickMouse RButton Both Window 45% 50%>
<SendLabel w4>
<ClickMouse RButton Both Window 55% 50%>
<SendLabel w5>
<ClickMouse RButton Both Window 60% 50%>

Which doesn't seem to do anything at all, actually. That is, I press the key, HotkeyNet picks it up and apparently executes the macro, but I don't see any sort of response in my slave windows. Based on this thread, it looks like most people just use key movement, but I thought you could make for more interesting formations using click-to-move. I've tried moving the 1st value around a bit to make sure i wasn't clicking too close to the center to cause it to move. Any suggestions as to what I might be doing wrong?

tldr
03-12-2013, 09:33 PM
... and I just met Krystallus for the first time... twice he killed 4 of my party in one shot before I researched to figure out wtf was going on, only to find that a solution to the positioning issue would be pretty handy right about now.

Edit: I managed to get the fight done using the key method. I'd still be interested in the mouse solution just for S&G if anyone can help.

Khatovar
03-13-2013, 02:00 AM
Well, you can use what you suggest, but it's a really clunky, and frankly ineffective, way to deal with movement.

For 1, you can't sustain movement with CtM, so you can't spread out further if you need to unless you resend the ; and make them CtM again, which can further exacerbate the issues below.

Second, it is going to rely wholly on the mouse position vs slave posistion. If your mouse is over an area they can't click, then they won't be able to move. This means mobs with large hitboxes or anything else that clips the clickable area, like terrain, walls, other toons etc will prevent one or more toons from moving. Or in the case of unit frames and Rightclick, could end up causing you to open menus or even triggering macros unintentionally instead of moving.

Third, Click to Move always uses a "run forward" command to get to the location selected, meaning any toon moving in a direction not directly forward will end up facing the wrong direction because they have to turn to face the destination of the click.

In the end, this gives you very little control of positioning and there's the added detriment that sometimes you will see performance drops as the mouse moves from window to window as the FPS raises and drops on each screen which can, in times of high spamming, lead to your mouse getting stuck on a slave screen instead of returning properly to the main window. It may not be a normal occurance, but it does happen.

Now, as far as the S&G aspect, yes, it can be done. I'm not sure how your scaling works out for your setup, for mine it was too much variation so I had to readjust the numbers. All you need to do is add a second <ClickMouse RButton> without any other parameters to actually get the click to process.


<Hotkey ScrollLockOn Oem1>
<SendLabel w2>
<ClickMouse RButton Window 20% 20%>
<ClickMouse RButton>
<SendLabel w3>
<ClickMouse RButton Window 22% 22%>
<ClickMouse RButton>
<SendLabel w4>
<ClickMouse RButton Window 18% 18%>
<ClickMouse RButton>
<SendLabel w5>
<ClickMouse RButton Window 20% 22%>
<ClickMouse RButton>

I did try several different variations of the concept, but nothing I could think of worked any better.