Code: Select all
#IfWinActive, ahk_exe discord.exe
^+r:: ; Ctrl+Shift+r - Close and relaunch Discord
WinClose, ahk_exe Discord.exe
Sleep 1000
Process, Close, ahk_exe Discord.exe
Process, WaitClose, ahk_exe Discord.exe, 5
Run, Discord.lnk, C:\Users\Montie\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Discord Inc
Return