AutoHotkey Community

It is currently May 27th, 2012, 10:36 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 36 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: December 7th, 2007, 6:50 am 
AUTO HOT KEY / WOW
writtin by: Vith


Here's my own personal AutoHotKey Script that has been shortend a bit so that people can understand the basics of AHK WOW Start up your AutoHotkey( if you dont have the program download it ).

http://www.autohotkey.com/download/Auto ... nstall.exe

....Once downloaded completly (and i'm sure you know how to install a download) Go to your startbar: All Programs: Autohotkey folder: start Autohotkey program....once program is running go to your bottom right of the task bar and right click the green icon ( auto hot key )
click "Edit this script" and past the following script below. DO make sure you copy the entire script.... if any errors come up you did something wrong.

Once you past it into the note pad, make sure
that you save the file. After doing so look at the bottom right
taskbar and right click the green icon ( auto hot key )
click "Reload Script" this will load it and it will begin to work.

Suggested to have both wow windows in window mode.
Full sized windowmode works too.

When ever you want to pause the script either click...
"Suspend Auto hot keys"
OR
"Pause Script"

By clicking the Auto hot key icon in the bottom right taskbar

Code:
WinGet, wowid, List, World of Warcraft

~1::
KeyWait 1
IfWinActive, World of Warcraft
{
ControlSend,, 1, ahk_id %wowid1%
ControlSend,, 1, ahk_id %wowid2%
ControlSend,, 1, ahk_id %wowid3%
ControlSend,, 1, ahk_id %wowid4%
ControlSend,, 1, ahk_id %wowid5%
Return
}

WinGet, wowid, List, World of Warcraft

~2::
KeyWait 2
IfWinActive, World of Warcraft
{
ControlSend,, 2, ahk_id %wowid1%
ControlSend,, 2, ahk_id %wowid2%
ControlSend,, 2, ahk_id %wowid3%
ControlSend,, 2, ahk_id %wowid4%
ControlSend,, 2, ahk_id %wowid5%
Return
}

WinGet, wowid, List, World of Warcraft

~3::
KeyWait 3
IfWinActive, World of Warcraft
{
ControlSend,, 3, ahk_id %wowid1%
ControlSend,, 3, ahk_id %wowid2%
ControlSend,, 3, ahk_id %wowid3%
ControlSend,, 3, ahk_id %wowid4%
ControlSend,, 3, ahk_id %wowid5%
Return
}

WinGet, wowid, List, World of Warcraft

~4::
KeyWait 4
IfWinActive, World of Warcraft
{
ControlSend,, 4, ahk_id %wowid1%
ControlSend,, 4, ahk_id %wowid2%
ControlSend,, 4, ahk_id %wowid3%
ControlSend,, 4, ahk_id %wowid4%
ControlSend,, 4, ahk_id %wowid5%
Return
}

WinGet, wowid, List, World of Warcraft

~5::
KeyWait 5
IfWinActive, World of Warcraft
{
ControlSend,, 5, ahk_id %wowid1%
ControlSend,, 5, ahk_id %wowid2%
ControlSend,, 5, ahk_id %wowid3%
ControlSend,, 5, ahk_id %wowid4%
ControlSend,, 5, ahk_id %wowid5%
Return
}

WinGet, wowid, List, World of Warcraft

~6::
KeyWait 6
IfWinActive, World of Warcraft
{
ControlSend,, 6, ahk_id %wowid1%
ControlSend,, 6, ahk_id %wowid2%
ControlSend,, 6, ahk_id %wowid3%
ControlSend,, 6, ahk_id %wowid4%
ControlSend,, 6, ahk_id %wowid5%
Return
}

WinGet, wowid, list, World of Warcraft

7::
KeyWait, 7, D
ControlSend,, {7}, ahk_id %wowid1%
ControlSend,, {7}, ahk_id %wowid2%
ControlSend,, {7}, ahk_id %wowid3%
ControlSend,, {7}, ahk_id %wowid4%
ControlSend,, {7}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

8::
KeyWait, 8, D
ControlSend,, {8}, ahk_id %wowid1%
ControlSend,, {8}, ahk_id %wowid2%
ControlSend,, {8}, ahk_id %wowid3%
ControlSend,, {8}, ahk_id %wowid4%
ControlSend,, {8}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

9::
KeyWait, 9, D
ControlSend,, {9}, ahk_id %wowid1%
ControlSend,, {9}, ahk_id %wowid2%
ControlSend,, {9}, ahk_id %wowid3%
ControlSend,, {9}, ahk_id %wowid4%
ControlSend,, {9}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

0::
KeyWait, 0, D
ControlSend,, {0}, ahk_id %wowid1%
ControlSend,, {0}, ahk_id %wowid2%
ControlSend,, {0}, ahk_id %wowid3%
ControlSend,, {0}, ahk_id %wowid4%
ControlSend,, {0}, ahk_id %wowid5%
Return

WinGet, wowid, List, World of Warcraft

~=::
KeyWait =
IfWinActive, World of Warcraft
{
ControlSend,, =, ahk_id %wowid1%
ControlSend,, =, ahk_id %wowid2%
ControlSend,, =, ahk_id %wowid3%
ControlSend,, =, ahk_id %wowid4%
ControlSend,, =, ahk_id %wowid5%
Return
}

WinGet, wowid, list, World of Warcraft

-::
KeyWait, -, D
ControlSend,, {-}, ahk_id %wowid1%
ControlSend,, {-}, ahk_id %wowid2%
ControlSend,, {-}, ahk_id %wowid3%
ControlSend,, {-}, ahk_id %wowid4%
ControlSend,, {-}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

Space::
KeyWait, Space, D
ControlSend,, {Space}, ahk_id %wowid1%
ControlSend,, {Space}, ahk_id %wowid2%
ControlSend,, {Space}, ahk_id %wowid3%
ControlSend,, {Space}, ahk_id %wowid4%
ControlSend,, {Space}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

x::
KeyWait, x, D
ControlSend,, {x}, ahk_id %wowid1%
ControlSend,, {x}, ahk_id %wowid2%
ControlSend,, {x}, ahk_id %wowid3%
ControlSend,, {x}, ahk_id %wowid4%
ControlSend,, {x}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

Tab::
KeyWait, Tab, D
ControlSend,, {Tab}, ahk_id %wowid1%
ControlSend,, {Tab}, ahk_id %wowid2%
ControlSend,, {Tab}, ahk_id %wowid3%
ControlSend,, {Tab}, ahk_id %wowid4%
ControlSend,, {Tab}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

Shift::
KeyWait, Shift, D
ControlSend,, {Shift}, ahk_id %wowid1%
ControlSend,, {Shift}, ahk_id %wowid2%
ControlSend,, {Shift}, ahk_id %wowid3%
ControlSend,, {Shift}, ahk_id %wowid4%
ControlSend,, {Shift}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

NumPad1::
KeyWait, NumPad1, D
ControlSend,, {NumPad1}, ahk_id %wowid1%
ControlSend,, {NumPad1}, ahk_id %wowid2%
ControlSend,, {NumPad1}, ahk_id %wowid3%
ControlSend,, {NumPad1}, ahk_id %wowid4%
ControlSend,, {NumPad1}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

NumPad2::
KeyWait, NumPad2, D
ControlSend,, {NumPad2}, ahk_id %wowid1%
ControlSend,, {NumPad2}, ahk_id %wowid2%
ControlSend,, {NumPad2}, ahk_id %wowid3%
ControlSend,, {NumPad2}, ahk_id %wowid4%
ControlSend,, {NumPad2}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

NumPad3::
KeyWait, NumPad3, D
ControlSend,, {NumPad3}, ahk_id %wowid1%
ControlSend,, {NumPad3}, ahk_id %wowid2%
ControlSend,, {NumPad3}, ahk_id %wowid3%
ControlSend,, {NumPad3}, ahk_id %wowid4%
ControlSend,, {NumPad3}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

NumPad4::
KeyWait, NumPad4, D
ControlSend,, {NumPad4}, ahk_id %wowid1%
ControlSend,, {NumPad4}, ahk_id %wowid2%
ControlSend,, {NumPad4}, ahk_id %wowid3%
ControlSend,, {NumPad4}, ahk_id %wowid4%
ControlSend,, {NumPad4}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

NumPad5::
KeyWait, NumPad5, D
ControlSend,, {NumPad5}, ahk_id %wowid1%
ControlSend,, {NumPad5}, ahk_id %wowid2%
ControlSend,, {NumPad5}, ahk_id %wowid3%
ControlSend,, {NumPad5}, ahk_id %wowid4%
ControlSend,, {NumPad5}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

NumPad6::
KeyWait, NumPad6, D
ControlSend,, {NumPad6}, ahk_id %wowid1%
ControlSend,, {NumPad6}, ahk_id %wowid2%
ControlSend,, {NumPad6}, ahk_id %wowid3%
ControlSend,, {NumPad6}, ahk_id %wowid4%
ControlSend,, {NumPad6}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

NumPad7::
KeyWait, NumPad7, D
ControlSend,, {NumPad7}, ahk_id %wowid1%
ControlSend,, {NumPad7}, ahk_id %wowid2%
ControlSend,, {NumPad7}, ahk_id %wowid3%
ControlSend,, {NumPad7}, ahk_id %wowid4%
ControlSend,, {NumPad7}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

NumPad8::
KeyWait, NumPad8, D
ControlSend,, {NumPad8}, ahk_id %wowid1%
ControlSend,, {NumPad8}, ahk_id %wowid2%
ControlSend,, {NumPad8}, ahk_id %wowid3%
ControlSend,, {NumPad8}, ahk_id %wowid4%
ControlSend,, {NumPad8}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

NumPad9::
KeyWait, NumPad9, D
ControlSend,, {NumPad9}, ahk_id %wowid1%
ControlSend,, {NumPad9}, ahk_id %wowid2%
ControlSend,, {NumPad9}, ahk_id %wowid3%
ControlSend,, {NumPad9}, ahk_id %wowid4%
ControlSend,, {NumPad9}, ahk_id %wowid5%
Return

WinGet, wowid, list, World of Warcraft

y::
KeyWait, LButton, D
ControlSend,, {y}, ahk_id %wowid1%
ControlSend,, {y}, ahk_id %wowid2%
ControlSend,, {y}, ahk_id %wowid3%
ControlSend,, {y}, ahk_id %wowid4%
ControlSend,, {y}, ahk_id %wowid5%
Return

~h::
KeyWait, h, D
#IfWinActive, World of Warcraft
{
ControlSend,, h, ahk_id %wowid1%
ControlSend,, h, ahk_id %wowid2%
ControlSend,, h, ahk_id %wowid3%
ControlSend,, h, ahk_id %wowid4%
ControlSend,, h, ahk_id %wowid5%
}
Return




BASICS
STEP 1.
Follow,Assist
I do suggest to have your "#1 key" as a button for your "alt toon #2" to be a "Follow, Assist, Attack Target, Stopcasting" macro.

MACRO EXAMPLE:

/target focus Toon#1name
/follow Toon#1name
/assist Toon#1name
/stopcasting

Senario Example :Lets say you have 2 mages going...So if your in a battle or approaching a target from your #1 Main window screen you would want to click #1keyboard button for your "ALT#2" to Assist, Attack Target.

NOTE: MOST OF THE TIME YOUR ALT CHARS WILL BE FOLLOWING YOU,
there is ways to setup a script that allows your w,a,s,d to work on all wow windows but trust me its a pain to controll movement and your better off with a follow/assist macro. :D
-----------------------------
Step 2
Time to.....Attack!! ATTACK!!!

I do suggest to have your "#2 key" as a Fireball button for your Main & alt toon #2. This means you will need to setup fireball on both characters #2 button on your action bar.

In game example : Find target...Press button #1, 2nd character will either follow, assist you / attack target. Press button #2 and both of your characters will shoot a fireball at your enemy.

----------------------------
Other needs to know "things"

X button will make them all sit....

Space bar will let them all jump....

Dont laugh some people love to know this... ;)

practically your wanting to have all the characters you want to duel-box to have the same spells in the same order. The rest is just simple pressing keyboard buttons.
-----------------------------
"P.S DUEL BOXING IS NOT CHEATING as long as your playing the characters you are being legit. Its 3rd PARTY programs are considered cheating." link example of a gm convo stating its not ...

http://www.dual-boxing.com/forums2/viewtopic.php?t=1049
-----------------------------
A few duel boxing Video Favs of my own
BASIC LOOK : http://youtube.com/watch?v=-Ev7wuPSkl0
BASIC LOOK2 : http://youtube.com/watch?v=j87ThaCNgRQ
ARENA 5SHAM: http://youtube.com/watch?v=g5brtLZbXYE
-----------------------------
Well good luck with it if you have any questions email me at
J.silva191@hotmail.com


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 8th, 2007, 1:54 am 
I dont play wow

But that is freaking awesome you made for the game total ownage according too the video from youtube.

how much clients can be opened originaly for wow.

goodluck


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 7th, 2008, 1:59 am 
hello, i see that there is already script in place for holding down shift and for holding down numbers, but when you press shift + a number then the macro does not work, would a macro have to be made specifically for each shift+# combo for example:

shift + 1
shift + 2
etc.

do you think that
Code:
~shift + 1::
KeyWait Shift
KeyWait 1
IfWinActive, World of Warcraft
{
ControlSend,, {shift} and {1}, ahk_id %wowid1%
ControlSend,, {shift} and {1}, ahk_id %wowid2%
Return
}

WinGet, wowid, List, World of Warcraft



would work? or would something else have to be done. Thanks


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 21st, 2008, 2:22 pm 
Hi, i'm trying to dualbox 2 wow accounts with this script but i have a problem. Not all keys work for me, only a few do. When i press spacebar both my characters jump. But when i press "1" or any other numeric button, only 1 character performs the action.


Report this post
Top
  
Reply with quote  
 Post subject: w,a,s,d
PostPosted: April 18th, 2008, 12:05 am 
can u give me the script for w,s,a,d if u no it?


Report this post
Top
  
Reply with quote  
 Post subject: omg
PostPosted: July 25th, 2008, 8:04 pm 
icantusemYspacebarnowandicantusetheletterYunlessipressshiftfirsttisprogramscrewedupmYcomputer.


Report this post
Top
  
Reply with quote  
 Post subject: AHK
PostPosted: July 25th, 2008, 9:46 pm 
Why dont you try suspending the script when you want to type....


Report this post
Top
  
Reply with quote  
 Post subject: o
PostPosted: July 25th, 2008, 9:49 pm 
lol i didnt try tht ty ill try now


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2008, 2:35 pm 
Offline

Joined: July 24th, 2008, 8:27 pm
Posts: 16
You only need to have this "WinGet, wowid, List, World of Warcraft " once in the script, on top of the script.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 6th, 2008, 3:41 pm 
lovely guide .. thank you.
Much better script than the other one i've tried.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2008, 11:55 pm 
ok..this program doesn't work very well but i tried another version and worked. my issue is now..if i quest with 2 chars..is there any possibility for the second char to loot quest items?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 22nd, 2008, 4:27 am 
i downloaded it and i opened the notepa bit and i clicked reload script but nothing happened

is it supposed to do that or is my comp stuffed?


Report this post
Top
  
Reply with quote  
 Post subject: help
PostPosted: September 22nd, 2008, 9:01 am 
Please someone help me only the 1 and 2 buttons work the rest dont do anything please help me! :cry:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2008, 9:10 pm 
Anonymous wrote:
ok..this program doesn't work very well but i tried another version and worked. my issue is now..if i quest with 2 chars..is there any possibility for the second char to loot quest items?


Looting is the only issue I'm struggling with as well.


Report this post
Top
  
Reply with quote  
 Post subject: Re: omg
PostPosted: September 27th, 2008, 9:43 pm 
jeffe wrote:
icantusemYspacebarnowandicantusetheletterYunlessipressshiftfirsttisprogramscrewedupmYcomputer.


rotflmao


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 36 posts ]  Go to page 1, 2, 3  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 8 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group