Advertisement
DOGGYWOOF

Untitled

Jun 27th, 2024 (edited)
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. local component = require("component")
  2. local term = require("term")
  3. local gpu = component.gpu
  4. local computer = require("computer")
  5.  
  6. -- Set screen resolution
  7. gpu.setResolution(100, 40)
  8.  
  9. -- Set BSOD background and text colors
  10. gpu.setBackground(0x0000AA) -- Blue background
  11. gpu.setForeground(0xFFFFFF) -- White text
  12.  
  13. -- Function to clear the screen
  14. local function clearScreen()
  15. term.clear()
  16. end
  17.  
  18. -- Function to print the BSOD message with scrolling effect
  19. local function printBSODMessage()
  20. local bsodMessage = [[
  21.  
  22. A problem has been detected and Windows has been shut down to prevent damage
  23. to your computer.
  24.  
  25.  
  26. If this is the first time you've seen this Stop error screen,
  27. restart your computer. If this screen appears again, follow
  28. these steps:
  29.  
  30.  
  31. Check to make sure any new hardware or software is properly installed.
  32. If this is a new installation, ask your hardware or software manufacturer
  33. for any Windows updates you might need.
  34.  
  35.  
  36. If problems continue, disable or remove any newly installed hardware
  37. or software. Disable BIOS memory options such as caching or shadowing.
  38. If you need to use Safe Mode to remove or disable components, restart
  39. your computer, press F8 to select Advanced Startup Options, and then
  40. select Safe Mode.
  41.  
  42.  
  43. Technical information:
  44.  
  45.  
  46. *** STOP: 0x0000007B (0xFFFFF880009A9928, 0xFFFFFFFFC0000034, 0x0000000000000000, 0x0000000000000000)
  47.  
  48.  
  49. Collecting data for crash dump ...
  50. Initializing disk for crash dump ...
  51. Beginning dump of physical memory.
  52. Dumping physical memory to disk: 100
  53. Physical memory dump complete.
  54. Contact your system admin or technical support group for further
  55. assistance.
  56. ]]
  57.  
  58. -- Split message into lines
  59. local lines = {}
  60. for line in bsodMessage:gmatch("([^\n]*)\n?") do
  61. table.insert(lines, line)
  62. end
  63.  
  64. -- Print lines with scrolling effect
  65. local startY = 2
  66. for i = 1, #lines do
  67. gpu.set(2, startY + i - 1, lines[i])
  68. os.sleep(0.1) -- Adjust the delay between each line scroll
  69. end
  70. end
  71.  
  72. -- Main function to run the BSOD simulation
  73. local function runBSODSimulation()
  74. clearScreen()
  75. printBSODMessage()
  76. os.sleep(5) -- Wait for 5 seconds after BSOD display
  77. computer.shutdown(true) -- Reboot the computer after 5 seconds
  78. end
  79.  
  80. -- Run the BSOD simulation
  81. runBSODSimulation()
  82.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement