a2 icon indicating copy to clipboard operation
a2 copied to clipboard

Allow for external interactions with current runtime

Open lipkau opened this issue 9 years ago • 2 comments

Expected Behavior

External command can take influence on the a2 runtime. Examples:

  • Context Menu can send command to module
  • URI Schema can send command to runtime

Current Behavior

n/a

Possible Solution

  • [ ] #SingleInstance Off --> so that a second instance can be opened, which will send a message to the already running instance and then close itself
  • [ ] register OnMessage(55555, "TriggerFromOtherInstance") --> make instance listen to triggers
  • [ ] register OnExit() to reload the instance nicely (A_ExitReason == "reload")

lipkau avatar Dec 09 '16 20:12 lipkau

in implementation in https://github.com/ewerybody/a2/tree/feature/AllowExternalCalls

lipkau avatar Dec 10 '16 11:12 lipkau

Dang I was unaware of the improvements in the branch. :O

I now added handling of arguments. So --shutdown works already... Still I'd actually like the a2 runtime to be as dumb as possible, let the UI do the heavy lifting and make anything else possible with the modules.

In a way I could think of dealing with the whole thing through the commandline. Like enabling modules, update things ... But that all would just configure and reload the runtime. I'd need an example for what the runtime needs to perform.

ewerybody avatar Jan 25 '21 10:01 ewerybody