Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.27 KB | None | 0 0
  1. #include <Misc.au3>
  2.  
  3. If Not _Singleton(@ScriptName, 1) Then
  4.    MsgBox(16, "Error", "An instance of this application is running, please close it before start a new one")
  5.    Exit
  6. EndIf
  7.  
  8. HotKeySet("{ESC}", "Quit")
  9.  
  10. While Sleep(10)
  11. WEnd
  12.  
  13. Func Quit()
  14.    Exit
  15. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement