User:Malokai92/ahk

Caller
1::	IfWinActive, Guild Wars {		Send,{LControl Down}1{LControl Up} }	Return One of Danny's scripts; for discord.
 * 1) SingleInstance, force
 * 2) IfWinActive, Guild Wars

Fast Swap

 * 1) SingleInstance force
 * 2) IfWinActive Guild Wars
 * 3) UseHook On

F1:: F2:: F3:: F4:: Send {ESC}{%A_ThisHotkey%} return One of Danny's scripts, for swapping weapons.

Trappers

 * 1) SingleInstance, force
 * 2) IfWinActive, Guild Wars
 * 3) UseHook On

1::	Send,1{Numpad1}{Numpad6} Return 2::	Send,2{Numpad2}{Numpad7} Return 3::	Send,3{Numpad3}{Numpad8} Return 4::	Send,4{Numpad4}{Numpad9} Return 5::	Send,5{Numpad5}{Numpad0} Return Bind to numpad keys (0-9) for first 5 skills since you can't bind a single key to multiple actions in Guildwars. Use for echo trapping, just make sure to pause due to hero casting lag.

Pious Renewal

 * 1) SingleInstance, force
 * 2) IfWinActive, Guild Wars
 * 3) UseHook On

1:: 2:: 3:: 4:: 5:: 6:: Send 8%A_ThisHotkey%8 Return Brute force mashing Pious Renewal! It assumes Aura of Holy Might is in slot 7 and Pious Renewal is in slot 8. You'll have to add an entry if not using AoHM for obvious reasons. I don't think AHK supports doing running scripts on click, hence moving skills over left to you can use keys. It might be better to hotkey Q and E to 5 and 6 if you only use first 3-4 keys like I do. A little note on using, you can strip AoHM if you activate Pious Fury/Pious Haste and use an attack skill at the same time or cast AoHM after using a skill and before stripping Pious Renewal.

Tab Scroll
LAlt & WheelDown::AltTab LAlt & WheelUp::ShiftAltTab LAlt & MButton::Send {Alt down}{tab 2}{Alt up} Scroll instead of tabbing!
 * 1) SingleInstance force

Skill Link

 * 1) SingleInstance, force

+/:: InputBox, SkillName, Input Skill Name If(SkillName = "") {	Return } Send Send {Left 2} Return

+,:: InputBox, SkillName, Input Skill Name If(SkillName = "") {	Return } Send %SkillName% return

+.:: InputBox, SkillName, Input Skill Name If(SkillName = "") {	Return } Send %SkillName% return No more repetitious typing! / does the pvx skillicon with the pvxbig tag,, does gww link, and. does gw link.

Tonic Spam
CoordMode, Mouse, Screen
 * 1) SingleInstance, force
 * 2) IfWinActive, Guild Wars

+[:: xpos = 37 ypos = 380 Loop 5 {	if GetKeyState("End", "P") break Loop 63 {		if GetKeyState("End", "P") break ; Spam first Send v		Send {SPACE} Loop 2 {			Click, %xpos%, %ypos% }		Loop 2 {			Click, %xpos%, %ypos% }		Click 548, 84 Sleep 10000 ; Spam second Send v		Send {SPACE} Loop 2 {			Click, %xpos%, %ypos% }		Loop 2 {			Click, %xpos%, %ypos% }		Click 548, 84 Sleep 10000 } xpos += 40 }
 * Set position to first row

xpos = 37 ypos = 424 Loop 5 {	if GetKeyState("End", "P") break Loop 63 {		if GetKeyState("End", "P") break ; Spam first Send v		Send {SPACE} Loop 2 {			Click, %xpos%, %ypos% }		Loop 2 {			Click, %xpos%, %ypos% }		Click 548, 84 Sleep 10000 ; Spam second Send v		Send {SPACE} Loop 2 {			Click, %xpos%, %ypos% }		Loop 2 {			Click, %xpos%, %ypos% }		Click 548, 84 Sleep 10000 } xpos += 40 } Return
 * Reset position to next row

Get Position
CoordMode, Mouse, Screen +End:: MouseGetPos, xpos, ypos Msgbox, The cursor is at X%xpos% Y%ypos%.

Salvage
CoordMode, Mouse, Screen
 * 1) SingleInstance, force

xsalv := -1 ysalv := -1

+LButton:: MouseGetPos, xsalv, ysalv ^LButton:: if (xsalv = -1 && ysalv = -1) {		Msgbox, Shift+Click to set the location of your Salvage Kit Return }	MouseGetPos, xpos, ypos Loop 250 {	if !GetKeyState("LButton", "P") ;Returns true if LButton isn't depressed break Click %xsalv%, %ysalv%, 2 Sleep 250 Click %xpos%, %ypos% Sleep 250 } Return

Salvage items quickly. Set where the salvage kit is then Ctrl+Click and hold down the button for it to cycle through. client crashes if you click too fast, hence the Sleep. You can probably get away with ~250.