I should have explained more fully. Suppose that I'm typing text --- in an email, or in a document that I'm typesetting, or in an internet text panel, or whatever --- and I want to type something that is the value of a DOpus global variable. Perhaps it's a version number (that changes occasionally), or a filepath (that may also change), or whatever.
AutoHotkey is the standard and straightforward way to add such a piece of text to a text document. I don't think DOpus can do this directly.
Is it possible to configure an AutoHotkey sequence (such as qrzz) that will type out into the document the value of a persistent DOpus global variable --- presumably using DOpusrt.exe?
One easy way would be to use dopusrt to run a command that puts the value in the clipboard, and then AHK would just need to send a paste command (ctrl-v). Of course that would trash your clipboard though.
Anything more complicated would probably involve a script and would depend on what options AHK has for obtaining data externally (I'm not familiar with it myself).
Do they need to be in Opus variables? Storing them in environment variables would mean both Opus and Autohotkey could see and set them without having to be involved with each other.
Thanks, Jon and Leo. I solved it using Leo's suggestion of environment variables because that was simpler --- just create the two required environment variables at the same time as the DOpus global variables are created --- and as Jon says, that method does not trash the clipboard.
I have no idea how it could be achieved, but wouldn't it be wonderful if the values of DOpus global variables and DOpus aliases could somehow be made easily available to other software. DOpus has long been the centre of how my computer is organised, and having these variables and aliases available elsewhere would further extend the centrality of DOpus.
You can use env-vars in Opus so you may not need to set the variables as both Opus vars and env-vars at once. You could use env-vars for both, unless you're doing something that only works with Opus vars.