However, if the hero is already selected when the hotkey is pressed, the scroll activates correctly : the game recognises the last part of the hotkey. When I press the hotkey, the game behaves as if only F1 was sent if the main hero wasn't previously selected, thus selecting him but not executing the "double press Numpad 7" part of the hotkey. Am I doing something wrong? is there a solution?Ģ) I'd like the XtraButton2 of the mouse, when pressed, to act as if I had pressed in quick succession : F1, Numpad7 Numpad 7.Īnd the game acts like this : the goal of this sequence is to select the main hero (F1), then quickly activate a scroll of town portal to warp away (Double press Numpad 7). So that the wheel of the mouse is used to select subgroups within a unit group (wheeldown scrolls the subgroup forward, wheeldown backwards, emulating the Tab and Cntrl+Tab keystrokes).īut the game acts as if I only pressed Tab, and doesn't register the Cntrl modifier. Here is what I'm trying to do (I'm basing every command I wrote on the templates of the GUI, I don't really have knowledge of the correct grammar and syntax of the autohotkey code) :ġ) Have the Wheeldown button return this command to the game : Cntrl+Tab. I seem to get better results with the send command and a setkeydelay of 30, but some sets of commands still don't function. The GUI I use programs all hotkeys with the sendinput command, and a setkeydelay of -1. I have read that warcraft III can play havoc with some autohotkey commands. The thing is, many things I try do not seem to work, event though they should function according to the Autohotkey documentation. I'm trying to set hotkeys which input a set commands following each others. I'm trying to program some hotkeys for warcraft III, using the autowarkeys GUI as a base for creating the script for the hotkeys, which I then edit manually. I am not a programmer, and therefore not very good at scripting. I am a warcraft II player, and I found out about autohotkey (by downloading autowarkeys).