Menu

Issue with Recording Macro

Anonymous
2008-02-10
2012-11-13
  • Anonymous

    Anonymous - 2008-02-10

    We are currently troubleshooting a recording macro issue.  This is regarding bug tracker number 1883097.  The main issue is that we are unable to understand what the variables regarding this macro mean.  Any assistance would be very helpful.  Thanks in advance.

     
    • Greg Bullock

      Greg Bullock - 2008-02-11

      For each macro step,

        (1) the first parameter is an integer indicating the type of step:
          0 = Windows WM_NOTIFY message, using an integer LPARAM,
          1 = Windows WM_NOTIFY message, using a string parameter,
          2 = Windows WM_COMMAND message (i.e., a menu command).

        (2) the second parameter is an integer indicating the message id.  Typically, this is a Scintilla message, one of the SCI_XXX constants in the file
        scintilla\include\Scintilla.h

        (3) the third parameter is an integer giving either
          (a) the WPARAM parameter, for type 0 or type 1 macro steps, or
          (b) the menu command id, for type 3 macro steps -- these ids are defined in the file
          PowerEditor\src\resource.h

        (4) the fourth parameter is an integer giving the LPARAM parameter, for type 0 or type 1 macro steps,

        (5) the fifth parameter is the value of the string constant for type 1 macro steps.

      Regards.
      Greg

       
      • Greg Bullock

        Greg Bullock - 2008-02-11

        Whoops!  Let me correct that.  The fourth parameter applies only to type 0 macro steps, not to type 1 macro steps.

        Greg