Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local term = require("term")
- local gpu = component.gpu
- local computer = require("computer")
- -- Set screen resolution
- gpu.setResolution(100, 40)
- -- Set BSOD background and text colors
- gpu.setBackground(0x0000AA) -- Blue background
- gpu.setForeground(0xFFFFFF) -- White text
- -- Function to clear the screen
- local function clearScreen()
- term.clear()
- end
- -- Function to print the BSOD message with scrolling effect
- local function printBSODMessage()
- local bsodMessage = [[
- A problem has been detected and Windows has been shut down to prevent damage
- to your computer.
- If this is the first time you've seen this Stop error screen,
- restart your computer. If this screen appears again, follow
- these steps:
- Check to make sure any new hardware or software is properly installed.
- If this is a new installation, ask your hardware or software manufacturer
- for any Windows updates you might need.
- If problems continue, disable or remove any newly installed hardware
- or software. Disable BIOS memory options such as caching or shadowing.
- If you need to use Safe Mode to remove or disable components, restart
- your computer, press F8 to select Advanced Startup Options, and then
- select Safe Mode.
- Technical information:
- *** STOP: 0x0000007B (0xFFFFF880009A9928, 0xFFFFFFFFC0000034, 0x0000000000000000, 0x0000000000000000)
- Collecting data for crash dump ...
- Initializing disk for crash dump ...
- Beginning dump of physical memory.
- Dumping physical memory to disk: 100
- Physical memory dump complete.
- Contact your system admin or technical support group for further
- assistance.
- ]]
- -- Split message into lines
- local lines = {}
- for line in bsodMessage:gmatch("([^\n]*)\n?") do
- table.insert(lines, line)
- end
- -- Print lines with scrolling effect
- local startY = 2
- for i = 1, #lines do
- gpu.set(2, startY + i - 1, lines[i])
- os.sleep(0.1) -- Adjust the delay between each line scroll
- end
- end
- -- Main function to run the BSOD simulation
- local function runBSODSimulation()
- clearScreen()
- printBSODMessage()
- os.sleep(5) -- Wait for 5 seconds after BSOD display
- computer.shutdown(true) -- Reboot the computer after 5 seconds
- end
- -- Run the BSOD simulation
- runBSODSimulation()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement