Close active app or delete marked file with the same button

Hello,

currently I've got a simple trigger with my third mouse button:

Long press > quit app under mouse

I want to expand this trigger to

Long press > quit app under mouse OR delete marked file in Finder.app

Do you have a hint for me how I can solve this.

Thanks in advance.