Skip to content

Instantly share code, notes, and snippets.

@Hackerjef
Created September 13, 2019 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hackerjef/4fecfce5cd2154e139111609f4e38b07 to your computer and use it in GitHub Desktop.
Save Hackerjef/4fecfce5cd2154e139111609f4e38b07 to your computer and use it in GitHub Desktop.
key to kill discord stable. AHK
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
; SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
insert::
process = Discord.exe
Loop
{
prev := ErrorLevel
Process, Close, %process%
Process, Exist, %process%
}
until !ErrorLevel or (prev = ErrorLevel)
return
+insert::
ExitApp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment