An alternative to in-game cfg scripts.
This file contains scripts that can be used in every game. Make sure you have Autohotkey installed and your ingame hotkeys are set properly in the script.- Whenever Roshan dies, click on the time to save it in the chat. When you are not busy type a previously saved time (e.g.
23:13
) in chat and pressLControl
+/
. Your input will be replaced withexpires 28:13, respawns 31:13-34:13
. This will also be saved to clipboard, so whenever you press ctrl+v you will see the same text. This is helpful since the chat only shows the last few messages and your roshan timing could be lost.
LControl & /::
Send, ^a
Send, ^c
Sleep, 100
variable := clipboard
if(strlen(variable)<6){
StringSplit, time, variable, :,
s := time2
m1 := time1+5
m2 := m1+3
m3 := m2+3
variable = expires %m1%:%s%, respawns %m2%:%s%-%m3%:%s%
Send, ^a
Send, %variable%
Clipboard := variable ; update clipboard
}
return
an ingame directional move hotkey should be assigned in the config
This is similar to a quick attack / move, but for a directional move.
- Pressing
XButton2
will force the hero to move in a straigt line without looking for the shortest path.
XButton2::
direct()
return
- Abilities: slark's pounce, sf's raze, mirana's leap...
- Other: forcestuff, placing an obs from trees...
global directional_move = "h"
direct()
{
Send, {%directional_move% Down}{Click, R}{%directional_move% Up}
}
When the script is active the capslock will always be turned off.
SetCapsLockState, Off
Additionally you can remap it to some other hotkey to avoid writing CAPS in the chat.
CapsLock:: /
Repeats a click or a button every 25ms.
- pick up runes/aegis.
- steal items/runes/aegis during ember's w
- creep block
- blink after rearm on tinker
- Holding
LAlt
+g
will spam right click every 25ms.
LAlt & g::
repeater("RButton","g")
return
repeater(key, host)
{
Loop
{
Send, {%key%}
Sleep, 25
If !getkeystate("Alt","p")
break
if !GetKeyState(host,"p")
break
}
Reload
}
You can also create your own custom scripts. Simply create a new .ahk
in the root directory and import the main script like this:
#Include %A_ScriptDir%/utility.ahk
#SingleInstance force
You may also add a new icon:
I_Icon = icons/arc.png
For convenience there are several shortcuts in the main script that switch between scripts. For example,
Alt
+Numpad1
will chnage to utility.ahk
^Numpad1::
Run "utility.ahk"
ExitApp
return
Alt
+Numpad2
will chnage to tinker.ahk
^Numpad2::
Run "tinker.ahk"
ExitApp
return
This will place a stone and use boulder smash. There is a small delay to avoid a selfcast bug after using blink dagger. Otherwise if a stone is placed too quickly it will be placed in the previous location (before blink).
Alt
+q
make sure the hero is watching towards the enemy and there is no rotational animation
There is a specific timing that allows to push a stone that was just consumed by the earth's spirits roll. This is only usefull if you don't have enough stones or your ultimate is on cooldown. You usually don't want to waste slow duration at the expense of stun duration. Additionally all units under magnetise will share the slow from Q (e.g. Q after R is better).
Alt
+w
Uses directional move to direct the hero, follows with a raze and an attack hotkey.
Alt
+q
orw
ore
This allows to avoid tedious non-stop clicking to maximize regen & damage during laning stage or after casting a spell.
Alt
+q
orw
ore
This spell can be casted during a rotational animation similar to sf's raze.
Alt
+r
make sure the hero is watching towards the enemy and there is no rotational animation
This allows to cast chains from a longer distance.
Alt
+w
make sure the hero is watching towards the blink direction
Alt
+t
will spam a 4th item.
requires proper coordinates and pixel colours
Alt
+d
drops items.
- drop items (shift queue during rearm).
- find bottle and use it.
- drop everything that gives you mana.
Alt
+f
picks up items.
- pickup items (after rearm).
- find soul-ring and use it.
- find bottle and use it.
- pickup dropped items in the original order (hopefully).
Uses torrent and waits exectly 1600 ms to return an enemy with x-mark. The latest time to return is 2000ms out of 4000ms, after this point the return cast animation will be interrupted and the torrent will be 0-400 ms (cast animation) late.
Alt
+d
requires proper coordinates
turn on autoselect summoned units
Arc's and Tempest Double's necro book can not be pernamently assigned to different hotkeys. But you can still bind thwm every time you summon them. If you have a hero and 2 summons selected, deselects the first unit (e.g. Arc or Tempest Double) and binds the rest to a specific hotkey.
Alt
+z
deselects the first unit & binds the rest toA
Alt
+x
deselects the first unit & binds the rest toS