EmEditor Home - EmEditor Help - Plug-in Reference - Messages


Runs a macro. You can send this message explicitly or by using the Editor_RunMacro inline function.

    wParam = 0;
    lParam = (LPARAM) (RUN_MACRO_INFO*) pRMI;



Pointer to the RUN_MACRO_INFO structure.

Return Values

The return value is one of the following values.

S_OK Success.
S_FALSE A macro error like a syntax error occurred.
S_EDIT_TEMP A macro error occurred but could not open the source code to edit because the source code is not in a text file. The caller should open the source file with the cursor position set according to the information provided by the ptErrorPos parameter.
E_FAIL A fatal error occurred.


Supported on EmEditor Version 9.00 or later.

Copyright 2003-2016 by Emurasoft, Inc.