Basically, this is a little macro written in autoit that allows you to select a base on the minimap with a chosen hotkey, then teleport to that base with another single chosen hotkey. It is useful if you really want to TP fast to a friend's base as you don't have to either click your TP hotkey then the guy's base on the minimap. It also serves as a "panic button" if your hero as let's say 3 health left and you got to TP fast

. You don't have to have your hero selected to use the macro, and you can edit the hotkey you want your hero on (F1-F3 I guess) and your TP's hotkey (w/e).
This small program comes in two versions, .exe and .au3. You can either use the exe or use the au3 if you have autoit V3 installed on your machine. It took about 10 minutes to make and this thread probablly took more time to write than the macro. This might have been done before, but I don't really care.
You may know me from the namespoofer nobody downloaded:
[WC3] GayPimp's Namespoofer (1.22)
I have also made a maphack with unique/codecaved offsets I may release one of these days once I'm tired or once Bendik quits stealing everybody's work.
Source:
Quote:
#include <misc.au3>
$HomeLocKey = IniRead("config.ini", "Hotkeys", "HomeLocationKey", "04") ;04 = Middle mouse.
$TPHomeKey = IniRead("config.ini", "Hotkeys", "TPHomeKey", "1B") ;1B = ESC key.
$HeroKey = IniRead("config.ini", "Hotkeys", "HeroKey", "0")
$TPKey = IniRead("config.ini", "Hotkeys", "TPKey", "0")
Dim $pos
While 1
If _IsPressed($HomeLocKey) Then
Homelocation()
EndIf
If _IsPressed($TPHomeKey) Then
TPHome()
EndIf
Sleep(10)
WEnd
Func Homelocation()
$pos = MouseGetPos()
EndFunc
Func TPHome()
Send($HeroKey)
$pos2 = MouseGetPos()
Send($TPKey)
MouseMove($pos[0], $pos[1], 0)
Sleep(10)
MouseClick("left")
MouseClick("left")
MouseClick("left")
EndFunc
|