Advertisement
tabnation

pranks

Mar 2nd, 2021
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1.  
  2. ;reload to stop pranks
  3. f12::reload ;or suspend
  4.  
  5. ;mousemove
  6. f1::
  7. settimer, movehaha,10000
  8. return
  9.  
  10. movehaha:
  11. Random, rand, 100, 800
  12. MouseMove, 500, %rand%
  13. return
  14.  
  15. ;random message boxes
  16. f2::
  17. settimer, msgboxhaha,10000
  18. return
  19.  
  20. msgboxhaha:
  21. MsgBox, 4,, Would you like to continue? (press Yes or No)
  22. IfMsgBox Yes
  23. {
  24. MsgBox, 4,, Are you sure you would you like to continue? (press Yes or No)
  25. IfMsgBox Yes
  26. {
  27. goto msgboxhaha
  28. }
  29. else
  30. {
  31. goto msgboxhaha
  32. }
  33. }
  34. else
  35. {
  36. MsgBox, 4,, Are you sure you would you like to continue? (press Yes or No)
  37. IfMsgBox Yes
  38. {
  39. goto msgboxhaha
  40. }
  41. else
  42. {
  43. goto msgboxhaha
  44. }
  45. }
  46. Return
  47.  
  48. ;move windows
  49. f3::
  50. settimer, keeponmoving,10000
  51. Return
  52.  
  53. keeponmoving:
  54. WinGetTitle, Title, A
  55. ;msgbox, %Title%
  56. WinMove, %Title%,, 0, 0
  57. return
  58.  
  59. ;random shut down https://www.autohotkey.com/docs/commands/Shutdown.htm
  60. f4::
  61. settimer, byebye,10000
  62. Return
  63.  
  64. byebye:
  65. Shutdown, 5
  66. Return
  67.  
  68. ;random hotstrings
  69. ::how::hahaha
  70. ::no::bwabwabwa
  71.  
  72. ;open and close programs
  73. f5::
  74. settimer, openclose,10000
  75. return
  76.  
  77. openclose:
  78. run, chrome.exe ;Process, Close, program.exe
  79. sleep 10000
  80.  
  81.  
  82.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement