| View previous topic :: View next topic |
| Author |
Message |
flake Guest
|
Posted: Tue Jul 26, 2005 1:34 pm Post subject: warcraft3 dota hotkeys |
|
|
thats what i wrote for myselfe to be able to play dota at the cursor keys.
It remaps "delete", "end" and "pagedown" to "qwertsdfgxcvb" according how often you press "strg + del" or "strg + end" or "strg + pagedown".
| Code: | ; ----------------------- wc3 ----------------------
;DEL is Pressed
Del::
if delkey = 1 ;
{
send {q}
}
if delkey = 2 ;
{
send {w}
}
if delkey = 3 ;
{
send {e}
}
if delkey = 4 ; siren
{
send {r}
}
if delkey = 5 ; sven, enchantress, prophet
{
send {t}
}
if delkey = 6 ;
{
send {a}
}
if delkey = 7 ;
{
send {s}
}
if delkey = 8 ;
{
send {d}
}
if delkey = 9 ;
{
send {f}
}
if delkey = 10 ;
{
send {g}
}
if delkey = 11 ;
{
send {c}
}
if delkey = 12 ;
{
send {v}
}
if delkey = 13 ; magina
{
send {b}
}
if delkey = ; no hero
{
send {Del}
}
return
;End is Pressed
End::
if endkey = 1 ;
{
send {q}
}
if endkey = 2 ;
{
send {w}
}
if endkey = 3 ; siren
{
send {e}
}
if endkey = 4 ; sven
{
send {r}
}
if endkey = 5 ;
{
send {t}
}
if endkey = 6 ;
{
send {a}
}
if endkey = 7 ;
{
send {s}
}
if endkey = 8 ;
{
send {d}
}
if endkey = 9 ; prophet
{
send {f}
}
if endkey = 10 ;
{
send {g}
}
if endkey = 11 ;
{
send {c}
}
if endkey = 12 ;
{
send {v}
}
if endkey = 13 ;
{
send {b}
}
if endkey = ; no hero
{
send {End}
}
return
;PgDn is Pressed
PgDn::
if PgDnkey = 1 ;
{
send {q}
}
if PgDnkey = 2 ;
{
send {w}
}
if PgDnkey = 3 ;
{
send {e}
}
if PgDnkey = 4 ;
{
send {r}
}
if PgDnkey = 5 ;
{
send {t}
}
if PgDnkey = 6 ;
{
send {a}
}
if PgDnkey = 7 ;
{
send {s}
}
if PgDnkey = 8 ;
{
send {d}
}
if PgDnkey = 9 ;
{
send {f}
}
if PgDnkey = 10 ;
{
send {g}
}
if PgDnkey = 11 ; magina
{
send {c}
}
if PgDnkey = 12 ;
{
send {v}
}
if PgDnkey = 13 ;
{
send {b}
}
if PgDnkey = ; no hero
{
send {PgDn}
}
return
;Cycling through hotkeys at del
^Del::
if delkey = 13
{
delkey :=
}
else if delkey > 0
{
delkey := (delkey + 1)
}
else
{
delkey := 1
}
return
;Cycling through hotkeys at end
^End::
if endkey = 13
{
endkey :=
}
else if endkey > 0
{
endkey := (endkey + 1)
}
else
{
endkey := 1
}
return
;Cycling through hotkeys at PgDn
^PgDn::
if PgDnkey = 13
{
PgDnkey :=
}
else if PgDnkey > 0
{
PgDnkey := (PgDnkey + 1)
}
else
{
PgDnkey := 1
}
return
;Reset keys
^!END::
delkey :=
endkey :=
PgDnkey :=
return |
|
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3854 Location: Bremen, Germany
|
Posted: Tue Jul 26, 2005 1:45 pm Post subject: |
|
|
I think you can simplify your script.
This should work for the increase | Code: | ^PgDn::
PgDnkey++
if PgDnkey > 13
PgDnkey :=
return
|
And this should do for the send | Code: | Keys = qwertsdfgxcvb
StringSplit, ArrayKeys, Keys,
return
$Del::
If delkey
{
Key := ArrayKeys%delkey%
Send, %key%
}
Else
Send, {Del}
return |
Just my 2 cents
*both not tested* _________________ Ciao
toralf  |
|
| Back to top |
|
 |
flake
Joined: 04 Nov 2006 Posts: 1
|
Posted: Sat Dec 23, 2006 9:03 pm Post subject: |
|
|
A while ago i changed my script.
Now u just have to press the key you want to have mapped.
If needed i could write better description
| Code: | ; ----------------------- wc3 ----------------------
#UseHook
;Right Shift mapped to "ß´" (toggle healthbar) when one of the keys (del, end, bilddown) is mapped to something.
RShift::
if ismapped>0 ;
{
if healthBar = ;
{
send {ß down}
send {´ down}
healthBar = "on";
}
else
{
healthBar = ;
send {ß up}
send {´ up}
}
}
if ismapped = ;
{
send {RShift down}
}
return
RShift up::
if ismapped = ;
{
send {RShift up}
}
return
;Right Control mapped to "a" (attack) when the keys (del, end, bilddown) are mapped to something.
RControl::
if ismapped>0 ;
{
send a
}
if ismapped = ;
{
send {RControl down}
}
return
RControl up::
if ismapped = ;
{
send {RControl up}
}
return
; Numpad0 mapped to F1 (own hero hotkey)
Numpad0::
if ismapped>0 ;
{
send {F1}
}
if ismapped = ;
{
send {Numpad0}
}
return
; abilities mappings:
;DEL is Pressed
Del::
if ismapped = 1 ;
{
send {%delkey%}
}
if delkey = ; no mapping
{
send {Del}
}
return
;End is Pressed
End::
if ismapped = 1 ;
{
send {%endkey%}
}
if ismapped = ; no mapping
{
send {End}
}
return
;PgDn is Pressed
PgDn::
if ismapped = 1 ;
{
send {%PgDnkey%}
}
if ismapped = ; no mapping
{
send {PgDn}
}
return
#UseHook off
;hotkey mapping to del
^Del::
Input, delkey, L1
ismapped = 1
return
;hotkey mapping to end
^End::
Input, endkey, L1
ismapped = 1
return
;hotkey mapping to PgDn
^PgDn::
Input, PgDnkey, L1
ismapped = 1
return
;Reset keys
^!END::
delkey =
endkey =
PgDnkey =
ismapped =
return |
_________________ *<(:-} |
|
| Back to top |
|
 |
cooza Guest
|
Posted: Mon Jan 01, 2007 12:59 am Post subject: |
|
|
| this could be really helpfull if you make it so it could work with any hero present and future by allowing mapping with global hotkeyz, gl! |
|
| Back to top |
|
 |
cooza Guest
|
Posted: Mon Jan 01, 2007 8:20 am Post subject: ! |
|
|
| oh and btw, yea i need a better explination, i dont see how you asign the hotkeys for pgup pgdown and end |
|
| Back to top |
|
 |
POINTS
Joined: 17 Jan 2006 Posts: 284
|
Posted: Fri Jan 05, 2007 1:59 am Post subject: Dota Hotkey Remapper |
|
|
I wrote a script that does something like this with a GUI and everything.
http://www.warkeys.com
A lot of the things you do here are pretty cool. I might try something like this myself. _________________ My AutoHotkey Program for Warcraft III:
Warkeys
http://warkeys.sourceforge.net/
Remap your hotkeys
Healthbars always on
Remap inventory |
|
| Back to top |
|
 |
|