# An Introductory Guide to Customizing Additional Hotkeys

**URL:** <https://forums.ageofempires.com/t/an-introductory-guide-to-customizing-additional-hotkeys/234326>\
**Category:** III - Discussion\
**Created:** [June 26, 2023, 3:43pm UTC](https://forums.ageofempires.com/t/an-introductory-guide-to-customizing-additional-hotkeys/234326 "2023-06-26T15:43:07Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![PoteznyTur](https://forums.ageofempires.com/user_avatar/forums.ageofempires.com/poteznytur/32/149406_2.png) [@PoteznyTur](https://forums.ageofempires.com/u/PoteznyTur)\
**Post date:** [April 23, 2024, 12:30pm UTC](https://forums.ageofempires.com/t/an-introductory-guide-to-customizing-additional-hotkeys/234326/23 "2024-04-23T12:30:04Z")

</div>

It is sth like "AbstractSkirmisher"

---

<div class="post-metadata">

**Author:** ![ELRUSO](https://forums.ageofempires.com/user_avatar/forums.ageofempires.com/elruso/32/164049_2.png) [@ELRUSO](https://forums.ageofempires.com/u/ELRUSO)\
**Post date:** [May 29, 2024, 7:07pm UTC](https://forums.ageofempires.com/t/an-introductory-guide-to-customizing-additional-hotkeys/234326/24 "2024-05-29T19:07:00Z")

</div>

it didnt work  
i dont know what i did wrong.

also i need the hotkey for daymio

---

<div class="post-metadata">

**Author:** ![PichulaJr](https://forums.ageofempires.com/user_avatar/forums.ageofempires.com/pichulajr/32/136962_2.png) [@PichulaJr](https://forums.ageofempires.com/u/PichulaJr)\
**Post date:** [October 3, 2024, 8:26am UTC](https://forums.ageofempires.com/t/an-introductory-guide-to-customizing-additional-hotkeys/234326/26 "2024-10-03T08:26:17Z")

</div>

I tried to make one to select all the light infantry or unit of the same tag, how can I do it?

I’m a bit clumsy at programming

---

<div class="post-metadata">

**Author:** ![River3420](https://forums.ageofempires.com/user_avatar/forums.ageofempires.com/river3420/32/207670_2.png) [@River3420](https://forums.ageofempires.com/u/River3420)\
**Post date:** [October 3, 2024, 9:46am UTC](https://forums.ageofempires.com/t/an-introductory-guide-to-customizing-additional-hotkeys/234326/27 "2024-10-03T09:46:41Z")

</div>

```auto
map("T", "Game", "uiFindAllOfTwoTypes(\"AbstractSkirmisher\", \"AbstractCounterSkirmisher\") uiCreateNumberGroup(0) uiFindAllOfType(\"Hero\")uiRemoveFromAnyNumberGroup uiSelectNumberGroup(0)")

```

You can change “T” to whatever bind you want.

---

<div class="post-metadata">

**Author:** ![PichulaJr](https://forums.ageofempires.com/user_avatar/forums.ageofempires.com/pichulajr/32/136962_2.png) [@PichulaJr](https://forums.ageofempires.com/u/PichulaJr)\
**Post date:** [October 3, 2024, 5:45pm UTC](https://forums.ageofempires.com/t/an-introductory-guide-to-customizing-additional-hotkeys/234326/29 "2024-10-03T17:45:48Z")

</div>

You are the best, thank you very much

fwfwajakjf

---

<div class="post-metadata">

**Author:** ![Kuoting](https://forums.ageofempires.com/user_avatar/forums.ageofempires.com/kuoting/32/131625_2.png) [@Kuoting](https://forums.ageofempires.com/u/Kuoting)\
**Post date:** [September 15, 2026, 8:51pm UTC](https://forums.ageofempires.com/t/an-introductory-guide-to-customizing-additional-hotkeys/234326/30 "2026-09-15T20:51:00Z")

</div>

I am trying to make a function that selects all units of the selected types. The existing command `uiFindAllOfSelectedType()` can only select units of one type. Even when multiple unit types are selected, it still only selects one type.

So I made a hotkey that performs `uiFindAllOfSelectedType()` multiple times:

```auto
map("control-`", "game", "uiCreateNumberGroup(0) uiFindAllOfSelectedType() uiCreateNumberGroup(9) uiSelectNumberGroup(0) uiFindAllOfSelectedType() uiAddSelectNumberGroup(9) uiSelectNumberGroup(0) uiFindAllOfSelectedType() uiAddSelectNumberGroup(9) uiSelectNumberGroup(9)")

```

Using this method, I can select all units of three selected types. However, when I add another repetition to select units of four selected types, the whole hotkey becomes invalid.

Is there a limit to the number of commands that can be chained together? For example, is the limit 10 commands at a time?

Or is there another way to achieve the effect I need?

[Previous page](https://forums.ageofempires.com/t/an-introductory-guide-to-customizing-additional-hotkeys/234326.md?page=1)
