#70 geany-macro: won't record ctrl key sequence

geanymacro (2)

I could not find geany-macro in the category drop-down list.

Trying to record a macro that searches for text and deletes the line. I have the text in the search buffer and when I try to record a ctrl-g (find next) it pops up an error message: Unrecognized message 2366 0 0. I clear that error msg and another pops up: Unrecognized message 2367 0 172505728. When I stop recording and test the macro it doesn't do anything except put the cursor in the jump to line number box.

Maybe the problem is with ALL ctrl key sequences. I tried to record a really simple macro to just save the file (ctrl-s) and that did not work either.


  • Colomban Wendling

    • labels: --> geanymacro
    • assigned_to: nobody --> wfraser
  • William_Fraser

    William_Fraser - 2012-03-08

    The unrecognised message pop-up is an error... It's a code that I'd missed.

    There is no problem with control key combinations. The problem is a lot harder to fix than that: it lies with the operating system itself. Response to key presses there are key pressed messages, key released messages, and messages to indicate key combinations sent to a window: so that holding down a key for a while may only have one key press event, and one key released event, but there may be many key entered events sent to the window depending on how long it was pressed for and the key repeat timeout. It's very difficult to try and record key presses for this reason.

    geanymacros doesn't try and do this, instead it records editor events using the inbuilt mechanisms in the editor and geany. It merly records these, and then plays them back without having to get involved with whatever GUI your computer is using for your operating system.

    This does have the disadvantage that anything that doesn't generate an editor event can't be recorded (such as accessing some of the menu items.)

    Unless there is some way to record the user key presses acurately and reproducibly, I don't see any other way to do this.


  • William Fraser

    William Fraser - 2012-04-17
    • status: open --> open-fixed
  • William Fraser

    William Fraser - 2012-04-17

    the search macro has been implemented.
    The ability to record menu calls (like ctrl-s for save) is not possible easily in the scintilla editor and would require a lot of coding to implement (emulating the GUI's tracking of keyboard pressing, their timing, repeat keys etc) and is beyond the scope of the macro recording functionality of the scintilla editor used in geany. As such I can't implement this.

  • William Fraser

    William Fraser - 2012-04-17
    • status: open-fixed --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks