AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

warcraft3 dota hotkeys

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
flake
Guest





PostPosted: Tue Jul 26, 2005 1:34 pm    Post subject: warcraft3 dota hotkeys Reply with quote

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

PostPosted: Tue Jul 26, 2005 1:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
flake



Joined: 04 Nov 2006
Posts: 1

PostPosted: Sat Dec 23, 2006 9:03 pm    Post subject: Reply with quote

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 Wink

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
View user's profile Send private message
cooza
Guest





PostPosted: Mon Jan 01, 2007 12:59 am    Post subject: Reply with quote

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





PostPosted: Mon Jan 01, 2007 8:20 am    Post subject: ! Reply with quote

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

PostPosted: Fri Jan 05, 2007 1:59 am    Post subject: Dota Hotkey Remapper Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group