Skip to content

Instantly share code, notes, and snippets.

@ggtylerr
Created September 22, 2022 20:50
Show Gist options
  • Save ggtylerr/15c68f4bcc2ad010c0efcf536a2e24f7 to your computer and use it in GitHub Desktop.
Save ggtylerr/15c68f4bcc2ad010c0efcf536a2e24f7 to your computer and use it in GitHub Desktop.
AHK script that lets you ALT+F4 properly. Requires running as admin.
#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.
; Note: You MUST use admin to run this script!
!F4::
if (WinActive("Roblox")) {
Runwait, taskkill /im RobloxPlayerBeta.exe /f
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment