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

Is there a way to use macros via hotkeys?

As the title suggests. If it would be possible to just activate the first, second, third, [...] macro in the macro bar with the keys 1, 2, 3 etc. for example that would really speed up my game. Is there a way I have overseen? (Maybe API?) Would really appreciate any ideas :)
Nope.
1423225050
Pat S.
Forum Champion
Sheet Author
Not that I heard of but I would recommend you posting a polite request in the API forum about it. There are true JavaScript guru's that post there.
The API has no access to setting any kind of hotkeys like that.
1423237533
Tom
Plus
Sheet Author
To the Suggestions area with you!! ;)
Thanks guys! Ill do that @Tom :)
1423240742

Edited 1423240876
You could possibly use one of the several programs out there to remap your keyboard. I'm at work at the moment but use one called "AutoHotKey" often with switch commands, routers, servers, and such. (It cuts down the time from the standard copy and paste.) You could then map away to your heart's content. Just messed with it a bit and experienced two problems so far. One is obvious, you have to have your cursor in the chat window, and two it messes up inline rolls with modifiers, like [[1d20+3]]. #a::Send I try cause injury to the orc, swinging with my axe [[1d20]] for [[1d8]] points of damage.{enter} This worked fine though. It typed it all out into the chat window and hit enter to submit it. by pressing the windows key along with the letter a. Of course you could map the key or key combo to use send the macro command for that matter to get around this problem. Edit: there is an addon to this program I see that you can use to place the cursor on the screen where you want it.
1423243734
The Aaron
Pro
API Scripter
That's a great Idea, Felix! ... in the interim... =D If you're in Chrome, you can create a bookmark with this in the link: javascript:(function(){ "use strict"; $('body').keydown(function(e) { var n,o,t; if( e && e.altKey && (48 <= e.keyCode) && (58 >= e.keyCode) ){ n=e.keyCode - ( 48===e.keyCode ? 38 : 49 ); o=$('#secondary-toolbar ul.mode.tokenactions'); if(o && 'none' !== o.css('display')) { t=o.children()[0].children[n]; if(t) { t.click(); } } } }); }()); It should look something like this: Once you're on the VTT, click the link in your bookmarks. Until you reload the page, you can press alt-1 through alt-0 to activate the first 1-10 token actions displayed. Cheers!
Wow thanks Aaron that`s exactly what if was looking for!
1423244626
The Aaron
Pro
API Scripter
No problem! =D