AutoHotKey

View previous topic View next topic Go down

AutoHotKey

Post  Ace Ventura on Mon Aug 13, 2012 3:13 pm

download:
http://www.autohotkey.com/

create new text-file (*.txt) and write down the following code, at the end just save the file as *.ahk

Code:
#ifWinActive, Warcraft III

<XButton1::
Send, {Numpad4}
Return

<XButton2::
Send, {Numpad5}
Return
#ifWinActive, Warcraft III = code will only(!) work when you are in wc3, if you tab into windows the hotkeys dont work anymore, tab back in wc3 and it works again Smile
XButton1 = mousebutton4 - XButton2 = mousebutton5

you can also use normal keys:
Code:
#ifWinActive, Warcraft III

Z::
Send, {Numpad4}
Return

X::
Send, {Numpad5}
Return
if you press "Z" it uses numpad button 4 and for "X" it uses numpad 5, you can simply add new lines, just copy paste it and change "{Numpad5}" into {Numpad1} for example.


Code:
<F2::
Send, {Numpad4}
Return
if you press F2 key it uses numpad 4 for example, etc.
maybe good if you use a labtop
F1 makes you select hero, but i dont have problems with using it, so you can use F1-F4 and F7 (others are reserved for wc3 hotkeys)



if you want to disable windows key just add this to your code:
Code:
~LWin Up::
Return

activate/deactivate autocast:
ok, this is more complicated and atm i can give you only the code for some specific resolutions

1920x1080:
Code:

SetDefaultMouseSpeed, 0

<MButton::
MouseGetPos, original_mouse_x, original_mouse_y
Click right 1564,998
Click right 1602,1003
MouseMove, original_mouse_x, original_mouse_y
return

SetDefaultMouseSpeed, 0 = makes your mouse realy move pretty fast, rest of the code moves your mouse to the bottom left, rickclicks icon/ability and moves back to original mouse position.
<MButton = mousebutton3, you can also just use a key there for example u::

800x600:
Code:

SetDefaultMouseSpeed, 0

<MButton::
MouseGetPos, original_mouse_x, original_mouse_y
Click right 652, 554
Click right 668, 557
MouseMove, original_mouse_x, original_mouse_y
return

1024x768:
Code:

SetDefaultMouseSpeed, 0

<MButton::
MouseGetPos, original_mouse_x, original_mouse_y
Click right 834, 709
Click right 857, 715
MouseMove, original_mouse_x, original_mouse_y
return

1280x1024:
Code:

SetDefaultMouseSpeed, 0

<MButton::
MouseGetPos, original_mouse_x, original_mouse_y
Click right 1045, 947
Click right 1068, 953
MouseMove, original_mouse_x, original_mouse_y
return

have fun Smile


ps: i use this now since about 3 weeks and its pretty nice to play dr now ^^ (havent randomed potm since then yet)
avatar
Ace Ventura
Pet Detective
Pet Detective

Age : 32
Location : Germany
Posts : 2004

http://www.youtube.com/user/rubi84

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum