How to copy and paste a Razor macro

Discussion in 'Guides' started by Upgrayedd, Nov 3, 2012.

  1. Upgrayedd

    Upgrayedd Renaissance Volunteers
    Renaissance Volunteers

    Joined:
    Oct 8, 2012
    Messages:
    361
    Likes Received:
    46
    Many times people will share their macros here on the forums. For you to make use of the macro you either need to record the macro yourself or copy and paste it.

    Shorthand
    It might look something like:

    Macro
    This is the raw data that Razor uses. It might look something like this:
    or

    Code:
    !Loop
    Assistant.Macros.DoubleClickTypeAction|3922|True
    Assistant.Macros.WaitForTargetAction|1
    Assistant.Macros.TargetRelLocAction|-1|0
    Shorthand isn't a usable macro in itself, it's more of a guide to show you how to record the macro yourself. The second two examples are real macros that you can copy and paste. There are multiple ways to do this and it depends on which operating system you are using.

    The first step is finding where your macros are stored. Create a new macro in Razor called "test" (you don't have to record anything into it). Open Windows Explorer (right click the start button and select browse or Windows Explorer) and find your new "test" macro. On Windows 7 it's probably "C:\Users\<your user name>\AppData\Roaming\Razor\Macros". On Windows XP it's probably "C:\Program Files (x86)\Razor\Macros". The shortcut is to hit WindowsKey-R and type "%appdata%\Razor\Macros" without the quotes.

    Double click test.macro to open it. The first time you do this you'll get a message that "Windows can't open this file", so you'll have to "select a program" and choose Notepad. Copy and paste the text from the forum to test.macro and save it.

    [​IMG]

    In Razor, on the macros tab, right click in the white space and chose "Reload" and you have a working macro.
  2. Wise

    Wise Well-Known Member
    UO:R Subscriber

    Joined:
    Aug 21, 2012
    Messages:
    1,901
    Likes Received:
    476
    Great info.

    Thanks!
  3. LanDarr

    LanDarr Renaissance Staff
    Renaissance Staff
    Senior Counselor
    Renaissance Volunteers

    Joined:
    Apr 19, 2013
    Messages:
    5,612
    Likes Received:
    6,120
  4. David Scraggs

    David Scraggs Well-Known Member

    Joined:
    Nov 17, 2014
    Messages:
    820
    Likes Received:
    266
    Running on a mac has once again proved to be a pain in the ass. But I don't get malware!
    Labeler likes this.
  5. Aragorn - OCT

    Aragorn - OCT Well-Known Member

    Joined:
    Nov 9, 2016
    Messages:
    389
    Likes Received:
    454
    Any idea how to find where macros are stored on a Mac? Having quite a time locating that...
  6. Momo

    Momo Member

    Joined:
    Dec 2, 2016
    Messages:
    42
    Likes Received:
    43
    Aragorn - OCT likes this.
  7. Aragorn - OCT

    Aragorn - OCT Well-Known Member

    Joined:
    Nov 9, 2016
    Messages:
    389
    Likes Received:
    454
    There they are!

    Thank you very much Momo.

Share This Page