Simplest ahk scripts. Please see AutoHotkey Beginner Tutorial
All of these scripts assume you're using the latest SuperMemo (currently version 18.04)
If you're using an older version like SuperMemo 17, simply change
#IfWinActive ahk_exe sm18.exe
to #IfWinActive ahk_exe sm17.exe