Yea I'm sorry :[ I noticed how long it was after I posted it.
Printable View
Yea I'm sorry :[ I noticed how long it was after I posted it.
What if I want to type something in party chat or guild chat? I start typing and both clients start typing, but I dont want the same thing to come out twice so I want to type with my main only.
How can I do that, if there is anyway, without suspending the script?
From what I have read, the only way to do this is, indeed, to suspend the script.Quote:
Originally Posted by Zeio
hey guys, um could anyone offer some help here I'm pretty clueless and new to this and don't know anything about scripting. I installed this program and ran this script that was posted to send "2" to both wow clients.
[code:1]Code:
WinGet, wowid, List, World of Warcraft
~2::
KeyWait 2
IfWinActive, World of Warcraft
{
ControlSend,, 2, ahk_id %wowid1%
ControlSend,, 2, ahk_id %wowid2%
Return
}[/code:1]
but it doesn't work. And I have no idea how to debug it. Any ideas where to start lol? Also, I am running both coppies of WOW from 1 installation, so far the only problem I've had is my macros used for all characters get deleted. Is there some reason I should bite the bullet and create another installation?
u u have to have wow installed for every wow u run. just copy the wow in ur c;programfiles save to ur desktop
Tried out AHK last night. It works... well, lets say 80% of the time:
Example:
1) I have "B" bind to bags (in Wow). Pressing "B" opens bags in both active(main) and inactive(clone) windows simultaniously about 3 to 5 times, then one of the windows "misses" a keypress and bags open alternate, for a while (3-5 times), then one "misses" again so the'yre back in synch, etc....
2) second problem is movement: Press and hold E in active window wil make main toon strafe smoothly, but clone will be extremely jerky, unplayable. And visa-versa. (I'll try the scripting -suggestions for movement given here when i get home tonight.
[code:1]~2::
KeyWait 2
IfWinActive, World of Warcraft
{
ControlSend,, 2, ahk_id %wowid1%
ControlSend,, 2, ahk_id %wowid2%
Return
}[/code:1]
I do not recommend using this kind of broadcasting.
Either way, it always broadcast the key a second time to the active window.
[code:1]
IfWinActive, World of Warcraft
2::
ControlSend,, {2 down}, ahk_id %wowid1%
ControlSend,, {2 down}, ahk_id %wowid2%
KeyWait, 2
ControlSend,, {2 up}, ahk_id %wowid1%
ControlSend,, {2 up}, ahk_id %wowid2%
Return
[/code:1]
I found that this model behaves exactly like it is supposed to with WoW.
WoW reacts on both keystates (down it highlights the icon, up it launches the action/macro) and this script allows that, makes it look like normal keyboard broadcast.
You can, of course, use any WoW window to broadcast your keystroke without the fear of double-sending the key.
There is one downside though, and I still haven't figured a way out of it yet, and it is caused by how AHK handles hotkey threading.
Say I press Shift-2 but don't release it yet, and add 3 to the shift-2 combo. So now Shift, 2 and 3 are pressed together. In AHK, I have a broadcast script telling my WoWs to press Shift-2 and Shift-3. BUT, once I pressed Shift-2, and since I haven't released it its thread stay active, Shift-3 doesn't activate UNTIL I release 2. Anyway, it does some weird behavior when you try to cast something, change your mind and try to cast something else before (Shift-2 down, 3 down, release 3, cast Shift-3, wait for cooldown and release Shift-2).
It's not much of a problem if you are careful, plus I find the benefit of seemless keyboard broadcast much more interesting.
To AlfaStation: your problem with your bags comes from the double B sent to the active window: sometimes WoW receives both Bs and just doesn't seem to be doing anything because of that. Remove the ~ and it should solve your problem.
Atsuki: You're a Genious!
Thanks! /kiss :D :D :D
Now it works how its supposed to ^^, even walking-strafe works fine like that in wow.
(ps: you forgot #, but you're still a genious 8) )
yeah, thanks, that script works for me. the other one not only didn't work but caused my computer to act really wonky.
No problem. ;)Quote:
Originally Posted by AlfaStation
I wrote it off the top of my head, what can I say...Quote:
Originally Posted by AlfaStation
I'm still working on my own script for my dual mages setup, but once it's done, be sure I will be posting it whole.