Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Open handout from macro quick bar

1640195503

Edited 1640195659
nico
Pro
I want to do something very simple, but I spent 30 min in the documentation and I guess I'm blind because I didn't find the answer. I want to open a handout from the macro quick bar. That's it... But I don't understand how to create a macro which just opens an handout. It seems to me like it's just impossible, and I have to create links from another handout, or from a chat menu. Is that correct?
1640205658
Kraynic
Pro
Sheet Author
I think that is accurate.  A macro is sending a message to the chat/dice roller.  I don't think it can activate an url on its own (which is probably a good thing), though it can generate a button in chat that you can click on that calls the url of the handout (or an external site).  There might be an api script that can do this sort of thing, but I can't think of seeing this exact function mentioned before. How often are you needing to call up this handout?  Is this something where you could just embed a chat menu button in the description of whatever roll might require referencing it?
1640207884
Gold
Forum Champion
I think there is/are/will be API addressing this.  There is certainly a nice API script that lists Characters (all of the Characters in the Journals). Based on that I think a similar one could list all or some of the Handouts. An API script that prints the contents of a Handout into the chat --- MotD also called Message of The Day API script --- if you put the [Name Of Handout] style of link-code into MotD handout, then call !motd --all into the chat, that prints the handout's text into chat and the index of links within it pointing to other handouts are functional. I do not know why the [Handout Exact Name] method doesn't work directly in the chat. (?) Kraynic said: There might be an api script that can do this sort of thing, but I can't think of seeing this exact function mentioned before.
1640215567
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
To sum up: A macro cannot directly open a URL. Neither can an API script. Either one can print links to chat. These links can be clicked on to open a handout or character sheet or Compendium page.