Log in

View Full Version : Setting focus change to a single button



pjdell
12-09-2008, 02:46 AM
AS i am two boxing rogues, the best way i have found to play is the focus set up. I was messing around with some ideas for what i can bind my mouse keys to and i came across the thought that it would be 1000 times better if i could switch focus using a single button. So that it would basically be a swap focus thing. IT would make switching toons a whole hell of a lot easier.

It would work so that if character A was the focus of character B, the swap would clear B's focus and set A's focus to character B. The same press would then reverse the action.

I've looked at the wiki and the wowwiki macro page and i'm having trouble figuring out if this could work. I'm not too good with script and it pretty much confuses the hell out of me. If i could do it I wouldn't think there would be a way to do it other than /script but i could be wrong.

I'm assuming you can't do it but if anyone can show me otherwise, :D
WTB /swapfocus... Anyone that could be of assistance?

olipcs
12-09-2008, 06:06 AM
well you could do this with using hotkeynet ('http://www.dual-boxing.com/forums/www.hotkeynet.com') and the toggle-command.
For example to /swapfocus with a press of 'j' you could use:


<Label w1 Local SendWinM WoW1>
<Label w2 Local SendWinM WoW2>

<HotKey j>
<Toggle>
<SendLabel w1,w2>
<Key shift j>
<Toggle>
<SendLabel w1,w2>
<Key alt j>

(here the window of ToonA must be named WoW1, the window of ToonB WoW2)

And bind the following macro on ToonA to j (with ToonB beeing the name of the other Toon):


/clearfocus [mod:shift]
/focus [mod:alt,target=ToonB]


And bind the following macro on Toonb to j (with ToonA beeing the name of the other Toon):


/clearfocus [mod:alt]
/focus [mod:shift,target=ToonA]

pjdell
12-09-2008, 03:56 PM
Ok nice, i'll try that.

Will using hotkeynet and octopus mess with anything?

Freddie
12-09-2008, 04:26 PM
I don't remember hearing about problems running them at same time, but I haven't tried.

pjdell
12-09-2008, 04:57 PM
Ok so i got it set up like you said.



<Label w1 Local SendWin "World of Warcraft">
<Label w2 192.168.1.112 SendWin "World of Warcraft">

<HotKey Oem6>
<Toggle>
<SendLabel w1,w2>
<Key shift oem6>
<Toggle>
<SendLabel w1,w2>
<Key alt oem6>


With those 2 macros on my toons. But what happens when i press the button is it sets the Focus on toon A to toon B, and the focus on toon B to toon A... and then when i press it again it removes both focus

I feel like i'm getting close but i don't know

pjdell
12-09-2008, 05:47 PM
I tried this


<Label w1 Local SendWin "World of Warcraft">
<Label w2 192.168.1.112 SendWin "World of Warcraft">

<HotKey Oem6>
<Toggle>
<SendLabel w1>
<Key shift oem6>
<SendLabel W2>
<Key Alt oem6>
<Toggle>
<SendLabel w1>
<Key alt oem6>
<SendLabel W2>
<Key shift oem6>


with these macros

/clearfocus [mod:alt]
/focus [mod:shift] Toonb

/clearfocus [mod:shift]
/focus [mod:alt] ToonA

That seemed to me like it would fix the issue but now its really messed up :(

Freddie
12-09-2008, 06:27 PM
Are you sure the macros are entered the way you're typing them here?

pjdell
12-10-2008, 01:15 AM
I am fairly sure, i'll have to double check when i get home. In theory, should that work if i have made no mistakes?