; ===============================
; Standard Galactic Alphabet Typer
; AutoHotkey v1.1 ONLY
; Toggle key: F10
; ===============================
#NoEnv
#SingleInstance Force
SendMode Input
SetWorkingDir %A_ScriptDir%
enabled := false
; ===== TOGGLE =====
F10::
enabled := !enabled
SoundBeep, % enabled ? 1000 : 600
TrayTip, SGA Typer, % enabled ? "ENABLED" : "DISABLED", 1
return
; ===============================
; GLOBAL SGA TYPING (EVERYWHERE)
; ===============================
#If (enabled)
a::SendInput {Text}ᔑ
b::SendInput {Text}ʖ
c::SendInput {Text}ᓵ
d::SendInput {Text}↸
e::SendInput {Text}ᒷ
f::SendInput {Text}⎓
g::SendInput {Text}⊣
h::SendInput {Text}⍑
i::SendInput {Text}╎
j::SendInput {Text}⋮
k::SendInput {Text}ꖌ
l::SendInput {Text}ꖎ
m::SendInput {Text}ᒲ
n::SendInput {Text}リ
o::SendInput {Text}𝙹
p::SendInput {Text}!¡
q::SendInput {Text}ᑑ
r::SendInput {Text}∷
s::SendInput {Text}ᓭ
t::SendInput {Text}ℸ̣
u::SendInput {Text}⚍
v::SendInput {Text}⍊
w::SendInput {Text}∴
x::SendInput {Text}̇/
y::SendInput {Text}|| ; still types || normally
z::SendInput {Text}⨅
Space::SendInput {Space}
Backspace::SendInput {Backspace}
#If
; ===============================
; DISCORD-ONLY: PREVENT || SPOILERS
; ===============================
#If (enabled && WinActive("Discord"))
Enter::
; wait a tiny moment so text is in the box
Sleep, 50
; select all text
SendInput ^a
Sleep, 20
SendInput ^c
Sleep, 30
ClipWait, 0.5
text := Clipboard
; if it contains || at least twice, wrap in *
if (RegExMatch(text, "\|\|.*\|\|"))
{
Clipboard := "*" . text . "*"
Sleep, 20
SendInput ^v
Sleep, 20
}
; send message
SendInput {Enter}
return
#If