SHARE
TWEET

Disable User Input - AutoIt

SadieSocio Mar 29th, 2019 (edited) 294 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Disables User Input for 10 Minutes
  2. #CTRL + ALT + DEL to Escape
  3. #RequireAdmin
  4. Sleep(3000)
  5. BlockInput(1);
  6. Sleep(600000)
  7. BlockInput(0);
  8. ------------------------------------------------------------------------------------------------
  9. #Disables User Input for 10 Minutes
  10. #CTRL + ALT + DEL to Escape
  11. #include <MsgBoxConstants.au3>
  12. #RequireAdmin
  13. Sleep(3000)
  14. BlockInput(1);
  15. MsgBox($MB_SYSTEMMODAL, "WARNING!", "Your PC ran into a problem and needs to restart.", 10)
  16. Sleep(600000)
  17. BlockInput(0);
  18.  
  19. https://i.ibb.co/mH8Rn9V/Warning.png
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top