Please share your AutoHotKey macros for Scrivener

This macro puts a toolbar overlay on the Scrivener window, with buttons that run the alt-key combos for “Character Map” and “Reveal in Binder”. You’ll probably have to change the height, width and coordinates at Gui, Show. And you’ll want to be running Scriv in full screen, else this overlay will float out on its own.

I’ve got about a 5000-line script running in conjunction with Scrivener, and it all started with something simple like this.

Rgds – Jerome

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
FileEncoding, UTF-8
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
;
SetTitleMatchMode, 2 ; any match
WinGet ScrivName,ID,- Scrivener
;
Gui Scrivo:Default
Gui  -SysMenu -Caption
Gui  font, s8 bold, Verdana
Gui, Add, Button,x20 gCharMap, CharMap
Gui, Add, Button,ys gQReveal, Reveal in Binder
Gui +Owner%ScrivName%
Gui Color, e5e5e5, aaccaa
Gui, Show, h39 w300 x547 y46
Return
;
CharMap:
WinActivate, - Scrivener
Send !e
Send e
return
;
QReveal:
WinActivate, - Scrivener
Send !v 
Send r 
return

Rgds – Jerome