Skip to main content
May 10, 2016 7:16 PM UTC
Solved

Can a mapkey delete itself?

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.

    May 10, 2016 11:01 PM UTC

    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.

    5 replies

    May 10, 2016 9:58 PM UTC

    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.

    May 10, 2016 11:01 PM UTC

    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.

    May 11, 2016 2:16 AM UTC

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

    Asking for a friend.

    May 11, 2016 7:20 AM UTC

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