So you have multiple units selected and by the press of the button determined in your script it will cycle through the units and at the same time jump to the location where the unit that is currently selected is?
What kind of keyboard are you using, and what exact key has this function?
(Im asking because on my german keyboard the ' key doesent do anything, but the Ä key can be used to move the camera to the location of a unit/group)
@Senseo1990: Yes, it works exactly like that for azerty keyboards. I'm using an azerty keyboard. I tried with qwertz keyboard and indeed "Ä" key works fine when only one unit selected but don't works with units in control group.
@lethalpi: Yes, SendInput is a function to send a sequence of keys. There are no delay involved but you can add delay with others functions like SetKeyDelay.
I'm not an expert on AutoHotkey so I invite you to look at the commands manual if you want more details. (I don't want to say whatever. )
@Senseo1990: Yes, it works exactly like that for qwerty and azerty keyboards. I'm using an azerty keyboard. I tried with qwertz keyboard and indeed "Ä" key works fine when only one unit selected but don't works with units in control group.
That is very interesting, now I only have to find the key that has the desired functionality on my keyboard, because the ' key doesent do anything for me :/
Okay, youre right i just tested it and the ' key does this in the azerty layout, just like the 4 key in the qwerty layout.
That is quite amazing. Thanks a lot, i will try to incoorporate that in my ahk script. I just need to see how, as the number 4 key is also used for control groups
What the ' key or 4 key does is cycling through the group of units, without actually selecting any unit
It moves the camera to unit 1 of the group, then unit 2, and so on, but never actually selects the unit.
It doesent work too well in conjunction with tab, because tab also selects the whole group after selecting every individual unit and therefore the tab selection-cycle and the ' camera-cycle become asynchronous
Lots of mouse have now multitude of buttons than you can use with AutoHotkey (or your mouse software) in place of "key" below : WheelLeft, MButton (Middle or wheel mouse button.), WheelRight, XButton1 (4th mouse button. Typically performs the same function as Browser_Back.) or XButton2 (5th mouse button. Typically performs the same function as Browser_Forward.)
Sorry for bringing this up here but I am horrible with computers. I have a Cmstorm keyboard that I think have som programing abilities. Does it work to rebind your keys with a keyboard or do I have to have to get autohotkeys to rebind the tacmapbutton in coh2?
Sorry for bringing this up here but I am horrible with computers. I have a Cmstorm keyboard that I think have som programing abilities. Does it work to rebind your keys with a keyboard or do I have to have to get autohotkeys to rebind the tacmapbutton in coh2?
There are a lot of CM Storm keyboard. Which one you have ? You have the list of all CM keyboard here.