Autohotkey script for melee barbarian

Page 4 of 4 Previous  1, 2, 3, 4

View previous topic View next topic Go down

Re: Autohotkey script for melee barbarian

Post by Gekko64 on Wed Nov 19, 2014 11:57 pm

Done Very Happy

Gekko64
Hopeless

Twinktwat
Posts : 948
Country : Italy

View user profile

Back to top Go down

Re: Autohotkey script for melee barbarian

Post by Moasseman on Thu Nov 20, 2014 12:48 am

Thanks, the autohotkey.com domain is no longer controlled by the devs and is hosting very old version/s of AHK that have multitude of problems with some scripts from nowadays :I

Moasseman
Glowing Blob

Posts : 353
TGBest Transferred
Country : Finland

View user profile

Back to top Go down

Re: Autohotkey script for melee barbarian

Post by Omesh on Sun Nov 23, 2014 2:10 am

I found it annoying that as a barb with runemaster, I have to re equip items for the defense bonus to apply. AHK solves that problem for me, so I figure the idea might help others too.

Might need to change the MouseMove coordinates. This is for a 800x600 window. No, I don't play it on that size. Playing it in windowed mode, every new game restores the window.

Code:
Numpad3::
MouseGetPos, Xcurrent, Ycurrent
SendInput, I
SetMouseDelay, 20
MouseMove, 440, 170 ; Weapon
Gosub, ClickAction
MouseMove, 500, 190 ; Chest
Gosub, ClickAction
MouseMove, 500, 120 ; Helm
Gosub, ClickAction
MouseMove, 620, 120 ; Gloves
Gosub, ClickAction
MouseMove, 620, 160 ; Belt
Gosub, ClickAction
MouseMove, 620, 200 ; Shoes
Gosub, ClickAction
MouseMove, 680, 170 ; Offhand
Gosub, ClickAction
SetMouseDelay, -1
SendInput, I
MouseMove, Xcurrent, Ycurrent
return

ClickAction:
Click
Sleep 20
Click
return

Omesh
Moon Knight

Posts : 29
Country : ???

View user profile

Back to top Go down

Re: Autohotkey script for melee barbarian

Post by Quirinus on Sun Nov 23, 2014 7:50 am

heh I used to have a script that did that and cast all the buffs for me + repaired items. XD

_____________________
"Zu jeder Zeit, an jedem Ort, bleibt das Tun der Menschen das gleiche."

Quirinus
Creature of Flame

Bloody High Five
Posts : 5567
TGGood none
Country : Croatia

View user profile

Back to top Go down

Re: Autohotkey script for melee barbarian

Post by IceLancer on Mon Feb 16, 2015 11:51 pm

Good one!
If you don't mind i would add two more lines, precaution really.

Code:

SetTitleMatchMode, 2
#IfWinActive, Diablo

$MButton::
while GetKeyState("MButton", "P")
{
    Sleep, 40
    Click
}
return


IceLancer
Cabalist

Posts : 23
Country : Serbia

View user profile

Back to top Go down

Page 4 of 4 Previous  1, 2, 3, 4

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum