I'm sure there's other techniques out there for this, but I couldn't find any in my brief search. It's crude and needs refinement.
This will cache an entity ID in variable 't' storing it for use on demand. You use PGDN to 'lock' your target, and then use LEFT/DOWN/etc to cast directed spells. (Pyro's ult, Moonqueen's .. thing, Everything Witch Slayer does)
You can literally cast Miniaturize while running away from someone, quite useful. And if you're bad like me, you run away a lot.
You use PGDN to 'lock' your target, and then can smack LEFT/DOWN/etc to cast, as long as they're in range it'll pewpew them.
The most important aspect of this is that you deselect whatever entity you've got targeted and then cast your spell, then target -- so you can hammer the button as much as you want and (most of the time) you won't trigger the center-on-selected-unit behavior.
bind LEFT "eval DeselectUnit(GetSelectedEntity());eval ActivateTool(0);eval If(SelectUnit(t), 1, Cancel);"
bind DOWN "eval DeselectUnit(GetSelectedEntity());eval ActivateTool(1);eval If(SelectUnit(t), 1, Cancel);"
etc.. I'm left handed, so..
Technique - Self-Target & Center-on-Me Locked
This one is a simple one, but one I've found to be useful. You select yourself, and center (in one key-press) -- and the centering is locked until you hit some other 'Center' bound key to unlock it. Good for when you get pulled off the screen by Kraken.
bind C "action SelectHero;action Center"
Thats it for now. I'd be interested to hear what improvements you guys can think of.
@assembly-your 1st technique is nice especially for me who fails at target clicking(always end up targeting ground and get error message), very useful on orbwalking and other things
i was wondering what number should i use for this: ActivateTool(#) should i be guessing or is there a pattern as to know which spell is assigned to a #? maybe 0 is 1st skill 3 is ulti? about items how are they arranged?
[Removed by MaxGhost because it's exploitable and unfair]