Running a macro by "hyperlinking" from the embedded data

Hi, would you have any type to implement a “hyperlink” like ['Archive' in Eagle](eagle://folder/M1PGD4DVVEIZB) with the “macro” option.

I have a few cases if it would be useful, pressing on the link

  1. copied the address to the clipboard
  2. dropped a macro, for example in “Autohotkey” where an action would be performed, such as in this link.
    1.1 - copies the link to the clipboard - “‘Archive’ in Eagle
    1.2 - runs the program “Eagle.exe”
    1.3 - executes the keyboard shortcut “CTRL+L” (library selection)
    1.4 - inserts the first word “Archive” + Enter (open library)
    1.5 - runs the link “eagle://folder/M1PGD4DVVEIZB” again

This is just an illustration of what I’m solving. In the Eagle app, it cannot open the called item directly this way, it opens the last library used. And then there are similar things that have no other access, and I launch them this way, via the right-click menu, after a long press.
I’m looking for a more convenient startup for another user as well.

Thank you for the tip and possible direction