anonymous1184

Ctrl+Alt+End

Feb 25th, 2021 (edited)
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ^!End::
  2.     Critical
  3.     SetTimer no2reload, 1
  4.     title := "Exit, Reload or Cancel?"
  5.     MsgBox % 0x3|0x20|0x200|0x40000, % title, Do you want to Exit the script?.
  6.     IfMsgBox No ; relabeled as "Reload"
  7.         Reload
  8.     IfMsgBox Yes
  9.         ExitApp
  10. no2reload:
  11.     if !WinExist(title)
  12.         return
  13.     SetTimer no2reload, Delete
  14.     WinActivate
  15.     ControlSetText, Button2, &Reload
  16.     ControlSetText, Button3, &Cancel
  17. return
Add Comment
Please, Sign In to add comment