Blog
Main » 2011 March 27 » Create a Simple DotA HotKey4:43 PM Create a Simple DotA HotKey |
I assume that you already read my first tutorial on how to create a simple hotkey. In this tutorial, we will be going to create a simple DotA Hotkey. On the previous tutorial, we created a simple hotkey, and today we will going to make a simple DotA Hotkey. We will use the same syntax, see below, to create the hotkey. Lets say for example the item slot 1 or the item on Numpad7, the upper-left item, the commonly used hotkey is Alt+Q so that's is what we are going to use. And this is the syntax that we are going to use: Code YourHotkey:: Send, [ Keys YourHotkey = your desired hotkey (!Q or Alt+Q in this example) Here is the sample code for sending Numpad7 using Alt+Q. Code !Q:: Send, {Numpad7} For keys like Numpad#, Enter, Space, Shift, etc., the keys should be enclosed by open and close braces or even with the mouse clicks. Making a Context-Sensitive Hotkey: Code #IfWinActive ahk_class Warcraft III The code above means that the hotkey will only be effective if the Warcraft III window is active, or simply you are inside Warcraft III. Full Sample Code: Code #IfWinActive ahk_class Warcraft III !Q:: Send, {Numpad7} !W:: Send, {Numpad8} !A:: Send, {Numpad4} !S:: Send, {Numpad5} !Z:: Send, {Numpad1} !X:: Send, {Numpad2} |
|
Total comments: 0 | |