GenuineJakob

nosave.ahk

Jul 27th, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Autohotkey 0.86 KB | Source Code | 0 0
  1. #Requires AutoHotkey v2.0
  2. #SingleInstance Ignore
  3. SendMode "Input"
  4. SetWorkingDir A_ScriptDir
  5. SetKeyDelay 0
  6. SetWinDelay 0
  7. SetControlDelay 0
  8. SetTitleMatchMode(2)
  9.  
  10. if !A_IsAdmin {
  11.     try {
  12.         Run('*RunAs "' A_ScriptFullPath '"')
  13.     } catch {
  14.         MsgBox "This script requires administrator privileges! Please run it again with the correct privileges.", "Error", 48
  15.     }
  16.     ExitApp()
  17. }
  18.  
  19. OnExit(AppExit)
  20.  
  21. <^F9:: {
  22.     RunWait('netsh advfirewall firewall add rule name="123456" dir=out action=block remoteip="192.81.241.171"', , 'Hide')
  23.     ToolTip("NO SAVING MODE ON", 10, 10)
  24.     Sleep 3000
  25.     ToolTip("NO SAVING MODE ON", 10, 10)
  26. }
  27.  
  28. <^F12:: {
  29.     RunWait('netsh advfirewall firewall delete rule name="123456"', , 'Hide')
  30.     ToolTip("NO SAVING MODE OFF", 10, 10)
  31.     Sleep 3000
  32.     ToolTip("")
  33. }
  34.  
  35. AppExit(*) {
  36.     RunWait('netsh advfirewall firewall delete rule name="123456"', , 'Hide')
  37. }
Tags: gta ahk
Advertisement
Add Comment
Please, Sign In to add comment