AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

World of Warcraft Scripts
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Horde for life
Guest





PostPosted: Tue May 29, 2007 4:18 pm    Post subject: World of Warcraft Scripts Reply with quote

I saw a few posts for BF2 but the WoW scripts are scattered, when I started I was tested to find WoW scripts so I would like to start a thread for the WoW players. With the great macros WoW has you dont really need AHK unless your 2boxing or cheating, I dont cheat the game but I do like to play 2 or 3 characters at one time on one PC. I am still a beginner but these seem to work flawlessly hours on end but open for suggestions.




Code:


WinGet, wowid, list, World of Warcraft
;2locks

1::
KeyWait, 1, D
   ControlSend,, 1 , ahk_id %wowid1%
   ControlSend,, h , ahk_id %wowid2%  ; assist macro /target Party1    /assist
Sleep, 500
   ControlSend,, 1 , ahk_id %wowid2%

Return

2::
KeyWait, 2, D
   ControlSend,, 2 , ahk_id %wowid1%
   ControlSend,, 2 , ahk_id %wowid2%

Return

3::
KeyWait, 3, D
   ControlSend,, 3 , ahk_id %wowid1%
   ControlSend,, 3 , ahk_id %wowid2%

Return

4::
KeyWait, 4, D
   ControlSend,, 4 , ahk_id %wowid1%
   ControlSend,, 4 , ahk_id %wowid2%

Return

5::
KeyWait, 5, D
   ControlSend,, 5 , ahk_id %wowid1%
   ControlSend,, 5 , ahk_id %wowid2%

Return


6::
KeyWait, 6, D
   ControlSend,, 6 , ahk_id %wowid1%
   ControlSend,, 6 , ahk_id %wowid2%

Return

7::
KeyWait, 7, D
   ControlSend,, 7 , ahk_id %wowid1%
   ControlSend,, 7 , ahk_id %wowid2%

Return

9::
KeyWait, 9, D
   ControlSend,, 9 , ahk_id %wowid1%
   ControlSend,, 9 , ahk_id %wowid2%

Return


0::
KeyWait, 0, D
   ControlSend,, 0 , ahk_id %wowid1%
   ControlSend,, 0 , ahk_id %wowid2%

Return

e::
KeyWait, e, D ; follow
   ControlSend,, - , ahk_id %wowid2% ; Keybinding a macro to a button with macro /follow Party1

Return

Numpad8::
KeyWait, Numpad8, D ; stop
   ControlSend,, s , ahk_id %wowid2%

Return

Numpad0::  ; jump
KeyWait, Numpad0, D
   ControlSend,, = , ahk_id %wowid2% ; keybindings set = to jump

Return








With a healer I use the Numpad a lot, I use Bartender3 with 9 buttons and make it 3x3 to look like numpad, I had trouble getting WoW to accept {Space} or {TAB} so I just changed the keybindings to keys I dont normally use in combat on 2% and 3%, it can make chatting quite challenging though =D
I have 3 accounts and 2 instances of WoW installed and and use the second WoW for 2 and 3 believe it or not is works well with a underpowered PC set at low video settings and no sound on 2 and 3. Just stage your flights to a major city or it might crash.



Code:


WinGet, wowid, list, World of Warcraft
; 1= warrior 2= warlock 3=Druid
; This is set up so when warrior charges 2 and 3 stop, aggro gain
;assist with damage and heals through keybindings and macros

1::
KeyWait, 1, D
   ControlSend,, 1 , ahk_id %wowid1%
   ControlSend,, s , ahk_id %wowid2%
   ControlSend,, s , ahk_id %wowid3%
Return



3::
KeyWait, 3, D

   ControlSend,, 3 , ahk_id %wowid1%
   ControlSend,, h , ahk_id %wowid2%
   ControlSend,, g , ahk_id %wowid3%
   ControlSend,, 7 , ahk_id %wowid3%
Sleep, 500
   ControlSend,, 1 , ahk_id %wowid2%
Sleep, 2000
   ControlSend,, 8 , ahk_id %wowid3%
   ControlSend,, 2 , ahk_id %wowid2%
Sleep, 2000

   ControlSend,, 3 , ahk_id %wowid2%

Return

e::
KeyWait, e, D  ;follow
   ControlSend,, - , ahk_id %wowid2%
   ControlSend,, - , ahk_id %wowid3%
Return


;Numpads are used for druid buffs and heals using macros and keybindings


Numpad1::
KeyWait, Numpad1, D
   ControlSend,, u , ahk_id %wowid3%
Return

Numpad2::
KeyWait, Numpad2, D
   ControlSend,, j , ahk_id %wowid3%
Return

Numpad3::
KeyWait, Numpad3, D
   ControlSend,, o , ahk_id %wowid3%
Return


Numpad4::
KeyWait, Numpad4, D
   ControlSend,, g , ahk_id %wowid3%
Return

Numpad5::
KeyWait, Numpad5, D
   ControlSend,, i , ahk_id %wowid3%
Return

Numpad6::
KeyWait, Numpad6, D
   ControlSend,, y , ahk_id %wowid3%
Return

Numpad7::
KeyWait, Numpad7, D ; follow

   ControlSend,, - , ahk_id %wowid2%
   ControlSend,, - , ahk_id %wowid3%
Return

Numpad8::
KeyWait, Numpad8, D ; stop

   ControlSend,, s , ahk_id %wowid2%

   ControlSend,, s , ahk_id %wowid3%
Return

Numpad0::  ; jump
KeyWait, Numpad0, D

   ControlSend,, = , ahk_id %wowid2%
   ControlSend,, = , ahk_id %wowid3%
Return




I have 3 accounts and 2 instances of WoW installed and and use the second WoW for 2 and 3 believe it or not is works well with a underpowered PC set at low video settings and no sound on 2 and 3. Just stage your flights to a major city or it might crash.

Please add your WoW scripts so we may all learn from your efforts and suggestions are very welcome.
Back to top
Helpy
Guest





PostPosted: Tue May 29, 2007 4:47 pm    Post subject: Reply with quote

It is a good idea to concentrate scripts in one place, BF2 example shown it is successful and it is less annoying for non gamers like me... Smile

I saw two topics of interest in General Chat section: World of Warcraft: AHK = cheating? Wink and perhaps World of Warcraft: tips and tricks (didn't looked at this one...)
Back to top
majkinetor



Joined: 24 May 2006
Posts: 3626
Location: Belgrade

PostPosted: Tue May 29, 2007 5:27 pm    Post subject: Reply with quote

As long as there is no separate forum, game applications are the same as scripts for winamp or anything else.
_________________


Last edited by majkinetor on Wed May 30, 2007 9:43 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3626
Location: Belgrade

PostPosted: Tue May 29, 2007 5:34 pm    Post subject: Reply with quote

This is the script I use. Just copy the script in the WoW folder and change the shortcut on desktop to match the script. Script will start the game.

  • Script skips the launcher.
  • ALT P password, ALT O username
  • In the game, middle click sets moving mode1 (the same as if you hold both mouse buttons all the time while moving). U control walking with the mouse moves. Useful to rest your fingers from holding mouse buttons and for more precise moving
  • TAB sets moving mode 2 - mouse move controls the camera, you drive the char with arrow keys. Extremely useful when you are chased by enemy - you can run and still look 360* around. Notice that you must change default NUMLOCK to TAB.
  • ALT E exits the script and let you use WoW sucky interface
  • ALT R reloads the script (just for case)
  • Win key is blocked so you don't accidently enter the OS.

  • Script also shutdown's some programs and reactivate them after WoW exits. I use this to desable DesktopX, OBjectBar, WindowBlinds, TaskInfo, NOD32 etc... but I removed this part.

Code:
#SingleInstance force
   
   Run Launcher.exe
   WinWait World of Warcraft
   ControlClick, Button3
   Sleep 15000         ;let the wow load

   WoW_Init()
   SetTimer, onTimer, 5000
return

OnTimer:
   If NOT (WinExist("ahk_class GxWindowClassD3d") or WinExist("World of Warcraft"))
   {
      ExitApp
   }
return

WoW_Init()
{
   Menu, Tray, Icon, Wow.exe
}


#IfWinExist ahk_class GxWindowClassD3d
TAB::
   if (WoW_middle)
   {
      WoW_middle := false
      Click up, right
   }

   Send {TAB}

   WoW_tab := !WoW_tab
   if (WoW_tab)
      Click down
   else
      Click up
return

MButton::
   if (WoW_tab)
   {
      WoW_tab := false
      Send {TAB}
   }
   
   WoW_middle := !WoW_middle
   if (WoW_middle)
      WoW_btnState = down
   else
      WoW_btnState = up

   Click %WoW_btnState%, left
   Click %WoW_btnState%, right
return

~LButton::
   if (WoW_middle)
   {
      WoW_middle := false
      Click up, right
   }
return

~RButton::
   if (WoW_middle)
   {
      WoW_middle := false
      Click up, left
   }
return


!o:: Send username{Tab}
!p:: Send pass{ENTER}
!e:: ExitApp
!r:: Reload
Lwin::return
`::return


#IfWinActive

_________________
Back to top
View user's profile Send private message MSN Messenger
Misha
Guest





PostPosted: Tue May 29, 2007 6:25 pm    Post subject: cool thx Reply with quote

Thx for the post.

I got this to work.

Code:


Space::  ; jump
KeyWait, Space, D
   ControlSend,, {Space} , ahk_id %wowid1%
   ControlSend,, {Space} , ahk_id %wowid2%
Return



I cant get this to work, it seems the game see's the {Rbutton} as individual letters and not as a right mouse click, is this a anticheat built into WoW?


Code:

f::
KeyWait, f, D

   ControlSend,, {RButton} , ahk_id %wowid1%

Return



Having the same problem with LCtrl+ scripts.

I read the documentation but I could not figure out what I am doing wrong.
I don't really understand programming Rolling Eyes
Back to top
Horde for life
Guest





PostPosted: Tue Jun 05, 2007 5:17 pm    Post subject: gui to hotkey link Reply with quote

Thank you for the scripts Majkinetor, I have used some of them.

I found the SmartGUI program by Rajat and think its awsome but I cant figure out how to build scripts with it, yes I have spent 2 hours reading searching and experimenting but I am fairly stupid when it comes to programming and cant see how to link simple hotkeys to buttons on gui.

The script I use is much longer but if I can get help on linking buttons for this example can build the rest.
Code:

WinGet, wowid, list, World of Warcraft

; Warrior and Healer


Gui, Add, Text, x46 y27 w90 h20 +Center, Warrior
Gui, Add, Button, x156 y27 w90 h20 , Heal 
Gui, Add, Button, x156 y57 w90 h20 , Heal
Gui, Add, Text, x46 y57 w90 h20 +Center, Healer
; Generated using SmartGUI Creator 4.0
Gui, Show, x473 y278 h104 w276, New GUI Window
Return
GuiClose:
ExitApp


Numpad4::       ; Healer tagets Warrior
KeyWait, Numpad4, D
   ControlSend,, g , ahk_id %wowid2%
Return

Numpad5::    ; Healer targets Healer
KeyWait, Numpad5, D
   ControlSend,, i , ahk_id %wowid2%
Return

Numpad6::    ; Cast heal
KeyWait, Numpad6, D
   ControlSend,, y , ahk_id %wowid2%
Return



I know it has to be simple I just cant get my mind around it. Thank you in advance.
Back to top
Horde for life
Guest





PostPosted: Tue Jun 05, 2007 6:23 pm    Post subject: I think I got it Reply with quote

This should start me off on the basics, I just could not figure out how to assign each button its own "tag" so to speak.
Code:


WinGet, wowid, list, World of Warcraft

; Warrior Leading Healer


Gui, Add, Text, x46 y27 w90 h20 +Center, Warrior
Gui, Add, Button, x156 y27 w90 h20 gH1button, Heal
Gui, Add, Button, x156 y57 w90 h20 gH2button, Heal
Gui, Add, Text, x46 y57 w90 h20 +Center, Healer
; Generated using SmartGUI Creator 4.0
Gui, Show, x473 y278 h104 w276, New GUI Window
Return
GuiClose:
ExitApp

H1Button:
MsgBox, I think I got it :)
return

H2Button:
MsgBox, Yep I got it :)
return

Numpad4::       ; Healer tagets Warrior
KeyWait, Numpad4, D
   ControlSend,, g , ahk_id %wowid2%
Return

Numpad5::    ; Healer targets Healer
KeyWait, Numpad5, D
   ControlSend,, i , ahk_id %wowid2%
Return

Numpad6::    ; Cast heal
KeyWait, Numpad6, D
   ControlSend,, y , ahk_id %wowid2%
Return

Back to top
majkinetor



Joined: 24 May 2006
Posts: 3626
Location: Belgrade

PostPosted: Tue Jun 05, 2007 8:02 pm    Post subject: Reply with quote

Smart gui is only for GUI building. You cant script in it. Better open editor and try first examples on the site.

Code:
Gui, Add, Button, x156 y27 w90 h20 gOnButtonClick, Heal

...
OnButtonClick:
    Msgbox hello. I am button.
return

_________________
Back to top
View user's profile Send private message MSN Messenger
Horde for life
Guest





PostPosted: Tue Jun 05, 2007 10:47 pm    Post subject: OK here it is Reply with quote

For 2boxers this is awsome, it compiles several button pushes with 1 button, basically target, press one and the target is dead (within reason).
My screen res is 1280x1024 I set WoW 1 at 1152x864 and WoW 2 at 800x600. This puts the pop box in lower left corner out of the way.

Every Popbox push takes you back to WoW 1 check it out.

Code:

;Warlock leading a Druid

WinGet, wowid, list, World of Warcraft


Gui, Add, Text, x2 y4 w35 h20 +Center, Voidy
Gui, Add, Text, x2 y30 w35 h20 +Center, Warlock
Gui, Add, Text, x2 y58 w38 h20 +Center, Druid
Gui, Add, Button, x43 y2 w40 h20 gH1Button, Heal
Gui, Add, Button, x43 y29 w40 h20 gH2Button, Heal
Gui, Add, Button, x43 y56 w40 h20 gH3Button, Heal
Gui, Add, Button, x88 y2 w40 h20 gR1Button, Rejuv
Gui, Add, Button, x88 y29 w40 h20 gR2Button, Rejuv
Gui, Add, Button, x88 y56 w40 h20 gR3Button, Rejuv
Gui, Add, Button, x133 y2 w40 h20 gD1Button, Dispel
Gui, Add, Button, x133 y29 w40 h20 gD2Button, Dispel
Gui, Add, Button, x133 y56 w40 h20 gD3Button, Dispel
Gui, Add, Button, x178 y2 w40 h20 gB1Button, Buff
Gui, Add, Button, x178 y29 w40 h20 gS1Button, Susp
Gui, Add, Button, x178 y56 w40 h20 gR4Button, Relod
Gui, Add, Button, x224 y2 w40 h20 gT1Button, Thorn
; Generated using SmartGUI Creator 4.0
Gui, Show, x6 y900 h82 w268, Ramiro Leading Dipstick
Return
GuiClose:
ExitApp
1::
KeyWait, 1, D ;
   ControlSend,, i , ahk_id %wowid1% ;pet attack
Sleep, 1200
   ControlSend,, 1 , ahk_id %wowid1% ; corruption
   ControlSend,, i , ahk_id %wowid2% ; target pet
   ControlSend,, 8 , ahk_id %wowid2% ; rejuv pet

Sleep, 2600
   ControlSend,, 2 , ahk_id %wowid1% ; agony
   ControlSend,, h , ahk_id %wowid2% ; assist pet
   ControlSend,, 4 , ahk_id %wowid2% ; fiarie fire
Sleep, 1800
   ControlSend,, 3 , ahk_id %wowid1% ; immolation
   ControlSend,, 0 , ahk_id %wowid2% ; insect swarm
Sleep, 2600
   ControlSend,, 4 , ahk_id %wowid1% ;  wand

Return


Return


e::  ; follow
KeyWait, e, D
   ControlSend,, - , ahk_id %wowid2%

Return

9:: ; drink
KeyWait, 9, D
   ControlSend,, 9 , ahk_id %wowid1%
   ControlSend,, 9 , ahk_id %wowid2%

Return


Numpad1:: ;MoW
KeyWait, Numpad1, D
   ControlSend,, u , ahk_id %wowid2%

Return



Numpad3:: ; macro rejuv, heal
KeyWait, Numpad3, D
   ControlSend,, o , ahk_id %wowid2%
Sleep, 1800
   ControlSend,, o , ahk_id %wowid2%
Return


Numpad4:: ; taget lock
KeyWait, Numpad4, D
   ControlSend,, g , ahk_id %wowid2%
Return

Numpad5:: ;target pet
KeyWait, Numpad5, D
   ControlSend,, i , ahk_id %wowid2%
Return

Numpad6:: ;target druid
KeyWait, Numpad6, D
   ControlSend,, y , ahk_id %wowid2%
Return



Numpad7::
KeyWait, Numpad7, D ; follow

   ControlSend,, - , ahk_id %wowid2%
Return

Numpad8::
KeyWait, Numpad8, D ; stop

   ControlSend,, s , ahk_id %wowid2%

Return

Numpad0::  ; jump
KeyWait, Numpad0, D

   ControlSend,, = , ahk_id %wowid2%
Return









H1Button:
WinActivate,  ahk_id %wowid1% ;makes  WoW 1 on top
   ControlSend,, i , ahk_id %wowid2%
   ControlSend,, o , ahk_id %wowid2%
Sleep, 1800
   ControlSend,, o , ahk_id %wowid2%
Return

H2Button:
WinActivate,  ahk_id %wowid1%
   ControlSend,, g , ahk_id %wowid2%
   ControlSend,, o , ahk_id %wowid2%
Sleep, 1800
   ControlSend,, o , ahk_id %wowid2%
Return

H3Button:
WinActivate,  ahk_id %wowid1%
   ControlSend,, y , ahk_id %wowid2%
   ControlSend,, o , ahk_id %wowid2%
Sleep, 1800
   ControlSend,, o , ahk_id %wowid2%
Return


R1Button:
WinActivate,  ahk_id %wowid1%
   ControlSend,, i , ahk_id %wowid2%
   ControlSend,, 8 , ahk_id %wowid2%
Return

R2Button:
WinActivate,  ahk_id %wowid1%
   ControlSend,, g , ahk_id %wowid2%
   ControlSend,, 8 , ahk_id %wowid2%
Return

R3Button:
WinActivate,  ahk_id %wowid1%
   ControlSend,, y , ahk_id %wowid2%
   ControlSend,, 8 , ahk_id %wowid2%
Return

D1Button:
WinActivate,  ahk_id %wowid1%
   ControlSend,, i , ahk_id %wowid2%
   ControlSend,, j , ahk_id %wowid2%
Sleep, 1800
   ControlSend,, f , ahk_id %wowid2%

Return

D2Button:
WinActivate,  ahk_id %wowid1%
   ControlSend,, g , ahk_id %wowid2%
   ControlSend,, j , ahk_id %wowid2%
Sleep, 1800
   ControlSend,, f , ahk_id %wowid2%
Return

D3Button:
WinActivate,  ahk_id %wowid1%
   ControlSend,, y , ahk_id %wowid2%
   ControlSend,, j , ahk_id %wowid2%
Sleep, 1800
   ControlSend,, f , ahk_id %wowid2%
Return


T1Button:
WinActivate,  ahk_id %wowid1%
   ControlSend,, g , ahk_id %wowid2%
   ControlSend,, r , ahk_id %wowid2%
Sleep, 2000

   ControlSend,, i , ahk_id %wowid2%
   ControlSend,, r , ahk_id %wowid2%
Sleep, 2000

   ControlSend,, y , ahk_id %wowid2%
   ControlSend,, r , ahk_id %wowid2%
Return

B1Button:
WinActivate,  ahk_id %wowid1%
   ControlSend,, y , ahk_id %wowid1%
   ControlSend,, g , ahk_id %wowid2%
   ControlSend,, u , ahk_id %wowid2%
Sleep, 2000

   ControlSend,, i , ahk_id %wowid2%
   ControlSend,, u , ahk_id %wowid2%
Sleep, 2000

   ControlSend,, y , ahk_id %wowid2%
   ControlSend,, u , ahk_id %wowid2%

Return

S1Button:
Suspend

Return

R4Button:
Reload
Return


Back to top
Horde for Life
Guest





PostPosted: Thu Jun 14, 2007 4:33 am    Post subject: No Gui mouse clicks over macros Reply with quote

I have created empty macros and set mouse clicks in ranges to send events to the second WoW, 1 is a warrior and 2 is a priest. there is keybindings and macros to figure out but this is a solid template.

Code:


WinGet, wowid, list, World of Warcraft

;TANK Leading PRIEST NEW 



LButton::
;                          ROW 1
If MouseInRange(1174,1221,245,290)
   ControlSend,, 7 , ahk_id %wowid2%           ; FLASH

else if MouseInRange(1174,1221,298,341)
   ControlSend,, 8 , ahk_id %wowid2%           ; HEAL

else if MouseInRange(1174,1221,351,393)
ControlSend,, 6 , ahk_id %wowid2%              ; RENEW

else if MouseInRange(1174,1221,400,446)
ControlSend,, 5 , ahk_id %wowid2%              ; BUBBLE   

else if MouseInRange(1174,1221,456,498)
ControlSend,, j , ahk_id %wowid2%               ; DISPEL
else if MouseInRange(1174,1221,505,548){
   ControlSend,, g , ahk_id %wowid2%           ; HEALS
   ControlSend,, 6 , ahk_id %wowid2%
Sleep, 1600
   ControlSend,, 7 , ahk_id %wowid2%
Sleep, 2500
   ControlSend,, 8 , ahk_id %wowid2%
Sleep, 3200
   ControlSend,, 8 , ahk_id %wowid2%
Sleep, 3200
   ControlSend,, 7 , ahk_id %wowid2%
Sleep, 2500
   ControlSend,, 8 , ahk_id %wowid2%
}



else if MouseInRange(1174,1221,703,751)
Suspend                                                        ; SUSPEND


else if MouseInRange(1174,1221,755,802)
ControlSend,, 9 , ahk_id %wowid2%               ; FEAR

else if MouseInRange(1174,1221,809,854)

                                                           ; 10 MIN BUFFS
{
   ControlSend,, y , ahk_id %wowid2%
   ControlSend,, f , ahk_id %wowid2%
Sleep, 2000
   ControlSend,, y , ahk_id %wowid2%
   ControlSend,, f , ahk_id %wowid2%
Sleep, 2000
   ControlSend,, g , ahk_id %wowid2%
   ControlSend,, f , ahk_id %wowid2%

}


;                              ROW 2
       If MouseInRange(1232,1278,246,291)
   ControlSend,, g , ahk_id %wowid2%          ; TANK


else if MouseInRange(1232,1278,349,392)
ControlSend,, y , ahk_id %wowid2%              ; PRIEST

else if MouseInRange(1232,1278,402,443)
ControlSend,, h , ahk_id %wowid2%              ; ASSIST   

else if MouseInRange(1232,1278,452,492)
ControlSend,, 1 , ahk_id %wowid2%               ; SWP

else if MouseInRange(1232,1278,500,548)
   ControlSend,, 3 , ahk_id %wowid2%           ; WAND

else if MouseInRange(1232,1278,555,595)
   ControlSend,, c , ahk_id %wowid2%           ; SHACKLE

else if MouseInRange(1232,1278,708,751)
Reload                                                           ; RELOAD


else if MouseInRange(1232,1278,761,803)
ControlSend,, 4 , ahk_id %wowid2%               ; FADE

else if MouseInRange(1226,1270,811,855)
{
                                                                       ;  BUFFS


   ControlSend,, y , ahk_id %wowid2%
   ControlSend,, u , ahk_id %wowid2%
Sleep, 2000
   ControlSend,, y , ahk_id %wowid2%
   ControlSend,, o , ahk_id %wowid2%
Sleep, 2000
   ControlSend,, g , ahk_id %wowid2%
   ControlSend,, u , ahk_id %wowid2%
Sleep, 2000
   ControlSend,, g , ahk_id %wowid2%
   ControlSend,, o , ahk_id %wowid2%
}


else if MouseInRange(1224,1268,606,648)
   ControlSend,, n , ahk_id %wowid2%           ; DRINK



else if MouseInRange(1174,1220,657,698)
WinActivate,  ahk_id %wowid2%                     ; 2 to front


else
    Click
Return

MouseInRange(minx,maxx,miny,maxy)
{
MouseGetPos, x, y
If (y >= miny) and (y <= maxy) and (x >= minx) and (x <= maxx)
  Return 1
Return 0
}



1::
KeyWait, 1, D ;

   ControlSend,, 1 , ahk_id %wowid1%
Sleep, 80
   ControlSend,, 1 , ahk_id %wowid1%
Sleep, 80
   ControlSend,, 1 , ahk_id %wowid1%
Sleep, 80
   ControlSend,, 1 , ahk_id %wowid1%
Sleep, 80
   ;ControlSend,, y , ahk_id %wowid2%
  ; ControlSend,, 5 , ahk_id %wowid2%
Sleep, 1600
  ControlSend,, 3 , ahk_id %wowid1%
   ControlSend,, s , ahk_id %wowid2%
Sleep, 1800
   ControlSend,, 3 , ahk_id %wowid1%
   ControlSend,, h , ahk_id %wowid2%
  ControlSend,, 4 , ahk_id %wowid2%
Sleep, 2600
   ControlSend,, 2 , ahk_id %wowid1%
   ControlSend,, g , ahk_id %wowid2%
   ControlSend,, 6 , ahk_id %wowid2%
Sleep, 2400
   ControlSend,, 4 , ahk_id %wowid1%
   ControlSend,, h , ahk_id %wowid2%
   ControlSend,, 2 , ahk_id %wowid2%
Return


F1::  ; mount
KeyWait, F1, D
   ControlSend,, r , ahk_id %wowid1%
   ControlSend,, 0 , ahk_id %wowid2%

Return

e:: 
KeyWait, e, D

   ControlSend,, - , ahk_id %wowid2% ; follow
Return

r::
KeyWait, r, D
  ControlSend,, s , ahk_id %wowid2% ; stop
Return



SPACE::  ; jump
KeyWait, SPACE, D
   ControlSend,, {SPACE} , ahk_id %wowid1%
   ControlSend,, {SPACE} , ahk_id %wowid2%
   ControlSend,, {SPACE} , ahk_id %wowid3%
Return


Back to top
Horde for Life



Joined: 14 Jun 2007
Posts: 1

PostPosted: Thu Jun 14, 2007 9:30 pm    Post subject: here is a pic Reply with quote

Ok, you can see that all the bars on the right are blank macros that have the x,y set with AHK to control WoW 2 priest, I hit the Buff button on Warrior screen and priest buffs self and warrior with out changing screens in this example. I use Bartender3 to set bars this way.


[img]
http://www.geocities.com/bumperslogans/wowscrnshot_061407_161113.jpg
[/img]
Back to top
View user's profile Send private message
Arthebus
Guest





PostPosted: Wed Jul 04, 2007 12:35 pm    Post subject: Reply with quote

I am a total newb, just downloaded the program and tinkering a little with scripts at the moment. The sole reason for me to use AHK is because I want to bind circle strafe movement to two random buttons (which I've bound to F5 and F6) on my mouse.

Circle strafe is Q and D pressed down simultaneously, or E and A. So basically, I want to bind QD to F5, and I want them to be 'pushed down' for as long as F5 is pushed down.

So well, I've come up with this lovely nub script

Code:
*F5::Send {q down} {d down}
return
*F5 UP::Send {q up} {d up}
return


This is very funny, because my character starts to jump and move in all directions like crazy when I press F5. I must've missed something really important Very Happy
Back to top
Arthebus
Guest





PostPosted: Wed Jul 04, 2007 12:43 pm    Post subject: Reply with quote

Eh, my apologies, I posted in the wrong section.
Back to top
stankla
Guest





PostPosted: Sat Jul 14, 2007 12:16 am    Post subject: Reply with quote

hi horde 4 life, i like ur script but would like to configure it for my war/priest.

i understand how it works but how would I go about to find out my own x,y locations? for my buttons?
Back to top
Sukarn



Joined: 16 Jun 2007
Posts: 35

PostPosted: Sat Jul 14, 2007 5:16 pm    Post subject: Reply with quote

stankla wrote:
i understand how it works but how would I go about to find out my own x,y locations? for my buttons?
Use WindowSpy (autohotkey).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group