#NoEnv #SingleInstance #Persistent SetWorkingDir, % A_ScriptDir IniRead, KeySequence, % "settings.ini", % "Settings", % "Hotkey" If (KeySequence == "ERROR") { MsgBox, % "Failed to read config info from ini file." ExitApp } MButton::SendInput %KeySequence%