Welcome to Our Community

Some features disabled for guests. Register Today.

change macro order

Discussion in 'Control Software' started by josy1024, Jun 15, 2021.

Tags:
  1. josy1024

    josy1024 New
    Builder

    Joined:
    Jun 21, 2019
    Messages:
    4
    Likes Received:
    0
    how can i change the macro order of the macros area.

    or where are the settings for the macros stored? (to transfer it to another computer or change it directly)

    any ideas?

    upload_2021-6-15_12-40-27.png
     
  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,039
    Likes Received:
    4,123
    No easy user interface for order-changing or export/import at this time (Just on the wishlist: Backup/Restore buttons for Macros · Issue #93 · OpenBuilds/OpenBuilds-CONTROL for a while now)

    But, if you don't mind using the Devtools, you can access the macros in JSON format for import/export and, you can change the order by editing the JSON prior to import:

    1) open devtools (Ctrl+Shift+I)

    2) Run
    Code:
    localStorage.getItem('macroButtons');
    upload_2021-6-15_14-39-11.png

    Copy the output (red text) and paste into a text file for editing or for transferring to another computer
    You can edit it at Online JSON Editor (to convert from a JSON String to actual JSON, just remove the start/end double parenthesis) you can move entries up and down by grabbing them on the left-dots-icon in the tree view on the right)

    3) To reimport (Note, will overwrite existing macros)
    run
    Code:
    localStorage.setItem('macroButtons', <paste json string here>);
    Note, make sure that JSON is valid, is a String(contains the start and end double parenthesis just like it did in the output above) etc

    4) Hit F5 to refresh the UI, either your macro buttons will show up, or, you'll see errors in the Console log in Devtools if your JSON was faulty. If it was, fix and repeat the localStore.setItem with valid JSON
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice