this is great if it working nice, will try it
this is great if it working nice, will try it
Nice solution, tryed this for my screen, but have to open the invetory first, and the second ring does not change. Where is a mistake and how to make it work without opening inventory? Could u please help me?
{
Send i ;
MouseGetPos, x_initial, y_initial ;
MouseClick, right, 1056, 449 ; Head
MouseClick, right, 1088, 443 ; Belt
MouseClick, right, 1095, 509 ; Ring 1
Send {Alt Down}
MouseClick, right, 1122, 472 ; Ring 2
Send {Alt Up}
MouseClick, right, 1010, 530 ; Gloves
MouseClick, right, 1022, 594 ; wrist
MouseClick, right, 1030, 451 ; Legs trauses
MouseClick, right, 1050, 596 ; Quiver
MouseClick, right, 1090, 590 ; Chest
MouseClick, right, 1056, 542 ; boots
MouseClick, right, 1087, 464 ; amulet
MouseClick, right, 1126, 586 ; shoulder
MouseMove, %x_initial%, %y_initial%, 0 ;This restores your mouse to the previously saved mouse position.
Send i ;Closes the inventory
}
return
Last edited by Slonokill; 07-16-2012 at 06:25 PM.
Sorry guys, I've been a bit away from the forum but I'm back again.
For hotkey's script to work you must play diablo 3 in windowed mode.
Btw this is a simple script to replace your clicks in order to change your gear for you in a fast way, the script must open the inventory for you and then click the spots and close it again, there's no other way, that I know of, to do this.
PS: If the script still doesnt work after you've changed to windowed mode, check the coords again, it might be clicking on the wrong place and therefore not changing it properly.
PSS: Btw this script considers that the open inventory key still is "i", if you've changed it you must also change it on the script.
If you still can't get it to work by then let me know on this forum, might try to help you with teamviewer, or try to explain it better on skype if you need me to.
Hi, as for my reqiest - I reloaded the computer and the game and now everything works without opening the inventory untill I click at smth, thank u for the templates anyway. By the way script does work not only in window mode.
great, I'm glad it's working for you, anything else just let me know, I'll help anyway I can.
It's a shame blizz's already planning on nerfing this "gear swap" method.
i suggest using this funkction
Code:ClickRand(x,y,delta) { Random, randx , -%delta%, %delta% Random, randy , -%delta%, %delta% Random, randt , 20, 50 Sleep randt cx := x+randx cy := y+randy Click right %cx%, %cy% Sleep randt }
Thank you all for your wonderful work on this template! I have adapted it to take advantage of my broken monk. Using the template I made two separate scripts, one for a Sweepnig Wind swap and another that swaps to my combat gear and then combined them into one 'super' script that swaps my gear, casts Sweeping Wind, and then swaps into a different set of gear. The first script works perfectly--the other two have minor issues that I'm hoping someone can help me resolve. So here is the super script, which, as you'll be able to tell, is just the two separate scripts pasted together and separated by a single command:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
F4::
{
MouseGetPos, x_initial, y_initial ;This saves your current mouse position
; Now considering your image, I'll write a template that will equip the items, from left to right, top to bottom.
MouseClick, right, 1208, 595 ; Ring 1
MouseClick, right, 1257, 615 ; 2h
Send {Alt Down}
MouseClick, right, 1207, 639 ; Ring 2
Send {Alt Up}
MouseClick, right, 1304, 596 ; Bracers
MouseClick, right, 1348, 617 ; Helm
MouseClick, right, 1394, 615 ; Gloves
MouseClick, right, 1443, 613 ; Chest
MouseClick, right, 1488, 615 ; boots
MouseClick, right, 1541, 596 ; ammy
Send {3}
MouseClick, right, 1206, 689 ; Ring 1
Send {Alt Down}
MouseClick, right, 1204, 734 ; Ring 2
Send {Alt Up}
MouseClick, right, 1253, 709 ; Main Hand
MouseClick, right, 1303, 709 ; Off Hand
MouseClick, right, 1349, 709 ; Helm
MouseClick, right, 1393, 709 ; bracers
MouseClick, right, 1446, 689 ; ammy
MouseClick, right, 1394, 615 ; OG Gloves
MouseClick, right, 1443, 613 ; OG Chest
MouseMove, %x_initial%, %y_initial%, 0 ;This restores your mouse to the previously saved mouse position.
}
return
And here's an image of my inventory at 1280x800 resolution:
So my first problem is that the last two commands, labeled OG gloves and OG chest, don't execute. However, if I just run the smaller script which is the second half of the one pasted above (it begins after "send{3}") everything works fine. I can't figure out for the life of me what's causing this issue, unless its something blizz implemented where too many clicks in rapid succession aren't recognized or something. Any suggestions?
The second issue is that if I put something else besides a shield in the off-hand slot, it won't equip. Shield works fine, anything else doesn't. I have no idea what's causing this either and can't pinpoint it. This might have something to do with the fact that the weapon I'm swapping out is a 2H? That shouldn't affect it though. Again, any suggestions would be greatly appreciated!
And thank you all for your great work!!