Skip to main content
21-Topaz I
May 10, 2016
Solved

Can a mapkey delete itself?

  • May 10, 2016
  • 2 replies
  • 3122 views

I tried recording it and nothing got recorded so I am guessing not. Has anyone played a trail file or otherwise deleted a mapkey?

Currently I am loading back in a blank mapkey over the top of the old mapkey which effectively deletes it. It still leaves it in the list of mapkeys though.

    Best answer by Jose_Costa

    I think it can, look at this example:

    mapkey $F6 ~ Command `ProCmdUtilMacros`;\

    ~ Select `mapkey_main` `list_mapkeys` 1 `$F6`;\

    ~ Activate `mapkey_main` `DeleteButton`;\

    ~ Activate `mapkey_main` `CloseButton`;

    It opens macro dialog, selects the desired mapkey, deletes it and close dialog box.

    Just replace  $F6 with your own mapkey name in line 1 and 2.

    Jose.

    2 replies

    kdirth
    21-Topaz I
    21-Topaz I
    May 10, 2016

    You should be able to delete a mapkey in the dialog box.  Remember, you must then save your mapkeys to keep the change.

    You can also delete lines out of your config.pro file.

    There is always more to learn.
    12-Amethyst
    May 10, 2016

    I think it can, look at this example:

    mapkey $F6 ~ Command `ProCmdUtilMacros`;\

    ~ Select `mapkey_main` `list_mapkeys` 1 `$F6`;\

    ~ Activate `mapkey_main` `DeleteButton`;\

    ~ Activate `mapkey_main` `CloseButton`;

    It opens macro dialog, selects the desired mapkey, deletes it and close dialog box.

    Just replace  $F6 with your own mapkey name in line 1 and 2.

    Jose.

    1-Visitor
    May 11, 2016

    Did you pull that from the trail file or coerce the mapkey to record it?

    Asking for a friend.

    12-Amethyst
    May 11, 2016

    Yes, I did the cheating, I copied it from the trailfile.