Running a macro from the toolbar gives an error

I am using a macro that automatically adds furigana (Japanese phonetic notation) to Japanese characters. I’ve not created it myself but got it from somewhere. The macro works if you run it from Tools - Macros - Run macro… But it’s a pain to go through all these menu items, so I made a button on the toolbar and assigned it to the macro. But it does not work this way giving me an error.
image

open the file AutoFurigana.py
find

def add_furigana_to_selection():

change it to

def add_furigana_to_selection(*args):
1 Like

Thanks a lot! It works great,