The Ghostly Decorator
Attach arcane modifiers to your macro-spirits dynamically, empowering simple keystrokes with spectral delays and logging.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Decorator
ARCANUM SCHOOL: Transmutation // Spectral Augmentation
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
class PoltergeistAction {
Execute() {
throw Error("Not implemented")
}
}
class BasicHaunt extends PoltergeistAction {
Execute() {
Send("Woooo!")
}
}
class ActionDecorator extends PoltergeistAction {
__New(action) {
this.action := action
}
Execute() {
this.action.Execute()
}
}
class DelayDecorator extends ActionDecorator {
__New(action, delay) {
super.__New(action)
this.delay := delay
}
Execute() {
Sleep(this.delay)
super.Execute()
}
}
haunt := DelayDecorator(BasicHaunt(), 500)
haunt.Execute()
Runic Tags:
#autohotkey
#decorator
#automation
#poltergeist