Initial code from autohotkey-scripts project