View Full Version : AHK wowid question
pegasus00000
07-27-2007, 02:39 AM
How do AHK figure out which instance of wow belong to which character? is there a way for us to assign wowid to each individual wow so the script will work for sure?
I tried Sorn's script, it is pretty good, but I want to know if there's another way. Thank you.
It's basically how AHK 'sees' the clients, it depends on which client it grabs first and enters into the wowid Array. So you have to have checks in place which the lastest version of my Duel Account Controller has. It is the best way i've found so far.
Basically what happens is you start multi WOW's
%wowid1% = Main Window
%wowid2% = Clone
but next time it is like this
%wowid1% = Clone
%wowid2% = Main Window
Which is why my script minimizes both copies, then maximizes one and asks the user if this is the MAIN if not, then it assumes the other is.
Trust me I wish there was a Sure-Fire better way to do things
There is, dedicated hardware :)
Matt007
07-27-2007, 04:42 AM
Hm, thats maybe one point more for Keyclone. It detects everytime which Window is active and takes this one as master :)
true but only so much you can do with scripting, but don't quite give up on me yet, don't doubt my kungfu friend! lol
Freeforlife
01-30-2008, 01:56 AM
;Tell user what is about to happen
SplashTextOn, 325, , Preparing to find your Main and Clone windows of WoW.
Sleep, 500
Splashtextoff
;Grab unique window ID's
WinGet, wowid, List, World of Warcraft
; Minimize All WOW windows
WinMinimize, ahk_id %wowid1%
WinMinimize, ahk_id %wowid2%
;Determine Main and Clone Windows
WinActivate, ahk_id %wowid1%
MsgBox, 4,, Is this your WOW Main window? (press Yes or No)
IfMsgBox Yes
idMain = %wowid1%
else
idMain = %wowid2%
If idMain = %wowid1%
{
idClone = %wowid2%
} else {
idClone = %wowid1%
}
;Activate All WOW windows
WinActivate, ahk_id %idMain%
WinActivate, ahk_id %idClone%
This code isn't mine, but it helped me out alot. Now I'm trying to make it for three, any suggestions?
vBulletin® v4.2.2, Copyright ©2000-2025, Jelsoft Enterprises Ltd.