[Writer] Macros conflict with Autohotkey script

Using LibreOffice Writer 6.2.8,

I have an Autohotkey script that replaces the string “x” by “𝑥” when typing.


And I have an frame in LibreOffice, that runs a macro when typing “Non-alphanumeric chars”

image description

This macro is an empty sub :

Sub debug_frame(name, code)
End sub

But when I type “x” inside this frame, it returns “x𝑥”, instead of “𝑥”

If I delete the macro assignment, it works.

So I guess the “non-alphanumeric input” event listenner of the frame is conflicting with my Autohotkey script.

Is there a way to debug that? Maybe I can access to the event listener code somewhere?