# Macro triggering a OneShot

**URL:** <https://community.keyboard.io/t/macro-triggering-a-oneshot/1452>\
**Category:** Programming\
**Tags:** plugin\
**Created:** [May 3, 2018, 8:45am UTC](https://community.keyboard.io/t/macro-triggering-a-oneshot/1452 "2018-05-03T08:45:32Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![Llamalland](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/llamalland/32/832_2.png) [@Llamalland](https://community.keyboard.io/u/Llamalland)\
**Post date:** [May 5, 2018, 9:50am UTC](https://community.keyboard.io/t/macro-triggering-a-oneshot/1452/21 "2018-05-05T09:50:57Z")

</div>

Would it help to have OSM(LeftShift) on my keymap somewhere and to reference it by coordinates?

Edit: have done so anyway to ensure that it works, which it does.

---

<div class="post-metadata">

**Author:** ![Llamalland](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/llamalland/32/832_2.png) [@Llamalland](https://community.keyboard.io/u/Llamalland)\
**Post date:** [May 6, 2018, 6:58am UTC](https://community.keyboard.io/t/macro-triggering-a-oneshot/1452/22 "2018-05-06T06:58:32Z")

</div>

To clarify - I have ensured that OSM(LeftShift) works. I don’t know how to reference it in a macro by co-ordinates and trigger a keypress, not quite at that level of experience.

---

<div class="post-metadata">

**Author:** ![algernon](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/algernon/32/4404_2.png) [@algernon](https://community.keyboard.io/u/algernon)\
**Post date:** [May 6, 2018, 7:28am UTC](https://community.keyboard.io/t/macro-triggering-a-oneshot/1452/23 "2018-05-06T07:28:01Z")

</div>

I’ll try to find some time today to figure out what’s required to make it work.

---

<div class="post-metadata">

**Author:** ![JDH](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@JDH](https://community.keyboard.io/u/JDH)\
**Post date:** [May 7, 2018, 5:35pm UTC](https://community.keyboard.io/t/macro-triggering-a-oneshot/1452/24 "2018-05-07T17:35:28Z")

</div>

I remain interested in giving this a try. It feels like a lot of work to avoid a few extra keypresses on each sentence, but I expect there will be other cases where this functionality would be useful.

I can imagine a future where my keyboard’s sentence-ending macro becomes impossible to live without.

---

<div class="post-metadata">

**Author:** ![Llamalland](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/llamalland/32/832_2.png) [@Llamalland](https://community.keyboard.io/u/Llamalland)\
**Post date:** [May 11, 2018, 10:55am UTC](https://community.keyboard.io/t/macro-triggering-a-oneshot/1452/25 "2018-05-11T10:55:07Z")

</div>

As a workaround, here’s a (PC) software solution to this: [https://autohotkey.com/boards/viewtopic.php?t=28199](https://autohotkey.com/boards/viewtopic.php?t=28199)

---

<div class="post-metadata">

**Author:** ![Llamalland](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/llamalland/32/832_2.png) [@Llamalland](https://community.keyboard.io/u/Llamalland)\
**Post date:** [May 21, 2018, 8:52am UTC](https://community.keyboard.io/t/macro-triggering-a-oneshot/1452/26 "2018-05-21T08:52:51Z")

</div>

And as a better, though clunkier but less software-reliant workaround, simply make 26 leader key sequences for each punctuation mark you wish to use 😉 FullStopLeader + Key\_A has output of full stop, spacebar, capital A eliminating the need for a one shot shift.

Is there a way to make this work without 26 entries for each punctuation point? As in, a generalisation to PunctuationLeader + [AnyAlphaKey] =\> Punctuation, spacebar, CapitalAlpha?

---

<div class="post-metadata">

**Author:** ![algernon](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/algernon/32/4404_2.png) [@algernon](https://community.keyboard.io/u/algernon)\
**Post date:** [May 21, 2018, 11:59am UTC](https://community.keyboard.io/t/macro-triggering-a-oneshot/1452/27 "2018-05-21T11:59:59Z")

</div>

> [@Llamalland](#):
>
> As in, a generalisation to PunctuationLeader + [AnyAlphaKey] =\> Punctuation, spacebar, CapitalAlpha?

You can use a generic handler, but you will need 26 entries in the Leader dictionary.

[Previous page](https://community.keyboard.io/t/macro-triggering-a-oneshot/1452.md?page=1)
