Page 1 of 1

How to map inventory keys on Mac OS

Posted: Thu Jul 11, 2013 7:48 pm
by EVILDINGLEBERRY
---originally posted 1/8/2013---

(ATTN: Please read conclusion before attempting this method of mapping)

INTRODUCTION

I've been trying to do this for years (ever since I got a Mac laptop), and finally pulled it off yesterday thanks to the.small.axe's post here:

Mac Dota Players: Easy/Free way to map inventory, solution to play With Mac Lion
(original script and instructions can be found at this link)

It's his script and all credit goes to him, but I had to modify some settings to make it work without X11. (added an application definition as well as some comments to help with customization, in addition to my own customization)

I also feel that his method/post is brilliant and should be brought to the masses so I chose to create my own here on playdota.com.

Inventory is mapped like this but can be modified to suit your personal preference (look at this like you're looking at your inventory):

Invoked with command key +

QW
EA
SD

Corresponding numpad keys:

78
45
12

INSTRUCTIONS

1. Download KeyRemap4MacBook, install, and restart your computer.

2. Open up System Preferences and click on KeyRemap4Macbook at the bottom of the window under the "Other" section. (if you are using the latest version you must open it up in the applications folder)

3. Click on the last tab, "Misc & Uninstall". Look towards the middle and click on "Open private.xml". It will open the folder where private.xml exists; open this file.

4. Delete anything in private.xml (I don't remember if there is any default code). Copy and paste the code from the link below into private.xml and save the file.

http://pastebin.com/ZaR7BRZM#

5. Open up the "Change Key" tab of KeyRemap4MacBook in System Preferences and click "Reload XML" near the top right of the window.

6. You should see a new item in the remapping list pop up called "Dota Inventory". Just check this and close out and you should be good to go.

CONCLUSION

You won't be able to use command + Q to exit the game anymore, but the remap is only active when WC3 is running.

I've also noticed there is a hitch when using this method. You must push both keys down (ex. command + Q) and then let go of them, and then click for the action to register. You can't click while holding down command and Q or it won't work. To clarify, an action equation (just incase!) for successful item utilization:

(push command + Q)(release command +Q)(click)

I don't think this is a big deal as long as you get used to it. Hell, it beats clicking inventory items with a mouse! Hope this helps any of you Mac inventory clickers. Man, it sure sucks. Shoot any flames/error detections/questions here, and cheers you douches!
Jack

(EVILDINGLEBERRY @ U.S. West)

Re: How to map inventory keys on Mac OS

Posted: Wed Aug 14, 2013 2:20 am
by nabo.
Ive used a mac to play dota.
Its interesting u searched yrs...
Google key remap for mac or keytweak....
Cmd or other key u set as trigger + hotkey u set will b ur numblock number keys for inventory.

Re: How to map inventory keys on Mac OS

Posted: Wed Aug 14, 2013 3:32 am
by BurritoCarcass
I use Mac too, I made a custom controller to help me remap my keyboard, its pretty nice.