Many thanks to Joe! After receiving Joe's preset, I've successfully imported it to BTT.
Just to mention one thing:
For those who are not using English UI. The click menu item actions will not work, because it is set to click English menu items.
A solution is to use Keyboard Maestro. I've added a "Enter Tags" group to the BTT. Instead of clicking activate menu item, I set it to execute an AppleScript that will execute a Keyboard Maestro macro.
In Keyboard Maestro, I can set conditions, Keyboard Maestro will first examine whether the menu item "Search ➤ Enter Tag" exists or not. If it does, it means the UI is English. It will activate the English menu. If it does not exist, in my case, the UI is Chinese, it will activate the Chinese menu. Because I often switch the UI language in Accordance, this trick is very useful to me. (See screenshot below) Of course, I could also assign other triggers in Keyboard Maestro for the same action.
(For reasons I don't know, if I use "Search" instead of "Search ➤ Enter Tag", the condition does not work as expected)
Pasted Graphic.png 85.6KB
Edited by Martin Zhang, 01 August 2020 - 08:00 PM.