Skip to content

Instantly share code, notes, and snippets.

@aeristhy
Last active November 14, 2021 02:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aeristhy/32ee1d61436b3c2dadf3271574302039 to your computer and use it in GitHub Desktop.
Save aeristhy/32ee1d61436b3c2dadf3271574302039 to your computer and use it in GitHub Desktop.
Dota2 Neutral Item Swapper Script
;This does not work on heroes with more than 6 skills(heroes like Invoker etc.) but if you want, you can replace the x & y postion.
#SingleInstance, Force
CoordMode, Mouse
SetDefaultMouseSpeed, 2
var = 1
slot(){
Click down 1275, 1050
Click up 1340, 995
return
}
returnSlot(){
Click down 1275, 1050
Click up 1340, 995
return
}
v::
MouseGetPos, xpos, ypos
if(var == 1){
slot()
var = 0
}
else {
returnSlot()
var = 1
}
MouseMove, %xpos%, %ypos%
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment