AutoHotkey Community

It is currently May 26th, 2012, 9:16 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Dota hotkey remapping
PostPosted: July 15th, 2007, 3:53 pm 
Hi, trying to get used to this program as i can see the power it has. I'm very impressed and can see this becoming much more useful in the future once i learn the syntax

My request is wanting to move the arrow keys to the wsad keys for moving the map around. This gives me more control and better reach for the hotkeys.

I am then planning to move the hotkeys for the abilities to the qerf keys so they're under easy reach of the fingers.

The problem is with the wsad keys instead of the arrow keys. I have this code:

Code:
w::Send, {up}
s::Send, {down}
a::Send, {left}
d::Send, {right}


*enter::
Hotkey, w, toggle
Hotkey, s, toggle
Hotkey, a, toggle
Hotkey, d, toggle
Send, {enter}
return


This means that if i try and type then i can turn off the hotkeys. This looks like it should work but it doesn't, the map doesnt move. I have tested this code in notepad and it works fine but not in WC3.

If i type:

Code:
w::up
s::down
a::left
d::right


Then this works but i get an error when i press the enter button.

Can anyone shed some light on this situation?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 15th, 2007, 8:33 pm 
Never mind, came up with using suspend command to disable hotkeys during chat


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2008, 3:08 pm 
Would you mind sharing your solution pretty please? :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 2nd, 2008, 1:47 am 
oboz wrote:
Would you mind sharing your solution pretty please? :)


how about

^{enter}::
{
togglekeys=0
send {enter}
KeyWait, enter, D ; wait for enter to be pressed
togglekeys=1
return
}


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, fusion1920, MSN [Bot], poserpro, tomoe_uehara and 62 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group