Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minutePC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Use Playwright to capture the page in Node.js, then use Windows Task Scheduler to run the script on a daily, weekly, or other supported schedule. Set the Windows PC’s time zone to India Standard Time (IST) and check the task’s displayed next run before relying on it: the scheduler uses the machine’s configured local time.
1. Set up Node.js and Playwright
-
Install Node.js on the Windows computer that will run the captures.
-
Open PowerShell in a project folder and initialise a Node.js project:
npm init -y -
Install Playwright:
npm install playwright -
Install the browser runtime required by the Playwright version you installed, following its installation guidance. Run the script interactively before scheduling it, so you can resolve missing browser or dependency errors in the same Windows account and environment.
Recommended: Update Every Outdated Driver on Your PC in One Scan - Free →Recommended: PC Feels Slow? A Free Scan Shows What's Dragging Windows Down →Recommended: Crashes or Glitches? A Free Driver Scan Usually Finds the Culprit →Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.#1 Best Overall
SaleLAPGEAR Home Office Pro Lap Desk - Black Carbon, Fits 15.6” Laptops- Spacious Design: Measuring 21.1" wide and 14.1" deep, our lap desk comfortably fits most laptops up to 15.6". Extra room for accessories ensures convenience.
- Enhanced Functionality: Packed with handy features, including a 5x9" precision tracking mouse pad and a built-in phone slot for seamless work or video calls. Plus, enjoy ergonomic support with the integrated cushioned wrist rest.
- Cool Comfort: Enjoy a stable surface with our lap desk's dual bolster cushion, designed for comfort and airflow, keeping your lap cool during extended use.
- Durable Surface: Work with confidence on our lap desk's solid surface, featuring a sleek black carbon color, ensuring optimal air circulation to prevent your laptop from overheating.
- On-the-Go Convenience: With an integrated handle and lightweight design (2.8 lbs), our lap desk is portable for travel or moving around the house, offering flexibility in any space.
2. Create a screenshot script
Save this as capture.js in the project folder. Replace the example URL with the page to capture. The script creates its output folder if needed and writes a timestamped, full-page PNG for every successful run.
const { chromium } = require('playwright');
const fs = require('node:fs/promises');
const path = require('node:path');
(async () => {
const outputDir = path.join(__dirname, 'screenshots');
await fs.mkdir(outputDir, { recursive: true });
const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
const outputPath = path.join(outputDir, `example-${timestamp}.png`);
const browser = await chromium.launch();
try {
const page = await browser.newPage({
viewport: { width: 1440, height: 900 }
});
await page.goto('https://example.com', {
waitUntil: 'networkidle',
timeout: 60000
});
await page.screenshot({ path: outputPath, fullPage: true });
console.log(`Saved ${outputPath}`);
} catch (error) {
console.error('Screenshot capture failed:', error);
process.exitCode = 1;
} finally {
await browser.close();
}
})();
Playwright documents saving a screenshot to a file and the fullPage option in its screenshot guide. Its Page API also documents screenshot output settings, including format, path, and scale.
Choose what the capture records
-
For only the visible viewport, remove
fullPage: true. Keep the viewport dimensions fixed if you want comparable captures. -
For a page-length image, keep
fullPage: true. Pages with lazy-loaded images or content that appears after scrolling may need additional handling to load that content before capture.The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy. -
Use a timestamped name to retain a sequence of captures, as in the example. To keep only the latest image, use a fixed filename instead; each successful run will overwrite it.
Rank #2
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
-
Pages with animation, changing data, consent dialogs, or personalised content can differ between runs. A fixed viewport and a wait for the relevant page state can improve consistency, but do not assume captures at different times or on different machines will be pixel-identical.
Run it once by hand
In PowerShell, from the project directory, run:
node .capture.js
Confirm that a PNG appears in the screenshots folder. Use absolute paths when configuring the scheduled task; scheduled runs may not start in the project folder as an interactive PowerShell session does.
3. Schedule the script in Windows Task Scheduler
-
Open Task Scheduler and create a task. Add a time-based trigger for the required recurrence, such as daily or weekly. The available trigger should match how often you need the capture.
Free tools Windows power users keep installed
One-click scans. No signup required.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy. -
Set the trigger’s start date and time. For an interval-based repeat, configure the repeat interval in the trigger’s advanced settings.
-
Add an action to start a program. Set Program/script to the full path of the Node.js executable, such as
C:Program Filesnodejsnode.exeif that is where Node.js is installed.Rank #3
SaleYilador Webcam Cover 3 Pack, 0.03 inch Ultra Thin Laptop Camera Cover Slide- Note: Not suitable for MacBooks released after 2023 or devices with a protruding front camera; Not applicable to full-screen or notch-style tempered glass screen protectors; Do not use on the rear camera of the phone.
- 💻 Why Do You Need a Webcam Cover Slide? — Safeguard your privacy by covering your webcam with our reliable webcam cover when not in use. Don't let anyone secretly watch you. Stay protected!
- ✅ Thin & Stylish — Enhance your laptop's functionality and aesthetics with our 0.027" ultra-thin webcam covers. Seamlessly close your laptop while adding a touch of sophistication.
- ✅ Fits Most Devices — Compatible with laptops, phones, tablets, desktops! Keep your privacy intact on Ap/ple, Mac/Book, iPh/one, iP/ad, H/P, L/novo, De/ll, Ac/er, As/us, Sa/msung devices.
- ✅ 365 Days Protection — Our upgraded 3.0 adhesive ensures a strong hold that won't damage your equipment. Experience reliable, long-term privacy protection day in and day out.
-
Set Add arguments to the full path of the script, for example
"C:UsersYourNamewebsite-capturecapture.js". Set Start in to the project folder, for exampleC:UsersYourNamewebsite-capture. -
Save the task, then check its next-run time in Task Scheduler. Windows’ time-based scheduling depends on the machine’s configured time zone; set that computer to India Standard Time and verify the displayed next run against the intended Indian local time.
PerformancePC Slower Than It Used to Be?DriversCrashes, No Sound, or Screen Glitches?PerformanceWindows Errors? Fix Them Before They SpreadSpecial offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy. -
Run the task manually once from Task Scheduler. Check the output folder and the task’s history for a successful run before leaving it unattended.
Microsoft documents Task Scheduler triggers and the schtasks command’s schedule options, including /sc for schedule type, /st for start time, and /ri for repeat interval. See Task Triggers and schtasks /create. The exact next-run display on the target PC is the practical check for its time-zone configuration.
4. Keep unattended runs dependable
-
Power and availability: A PC that is asleep or powered off may not run a capture at the intended time. Choose power settings and task conditions appropriate to whether the machine must wake to run.
Rank #4
AboveTEK Portable Laptop Lap Desk w/Retractable Left/Right Mouse Pad Tray, Non-Slip Heat Shield Tablet Notebook Computer Stand Table w/Sturdy Stable Work Surface for Bed Sofa Couch or Travel- Anti-Slip Surface - Transform your laptop into a mobile workstation with the AboveTEK portable laptop lap desk. The anti-slip surface provides a strong grip for laptops up to 15.6 inches(Diagonal), while the double rubber strip on the bottom ensures a stable display or typing experience on your lap, couch, or bed.
- Retractable Mouse Pad - Retractable laptop mouse pad extends on both directions for the left/right handed with elevation along the edges for stopping mouse from falling off. The size of laptop tray is 14" X 9.7" and the size of mouse pad is 7.4" X 6.1".
- Effective Heat Shield - The effective heat shield made of sturdy and thick material protects your laptop from overheating. Prioritizes your comfort and safety, an ideal lap pad or board for working anywhere.
- EASY to Carry and Store - With an ergonomic and simplistic design, the lap desk is portable to store in a backpack. Only 15" in size, 2.2 lb of weight and with slim 0.6 inch thickness, it is ready to be easily carried around.
- Widely Applicable - The smooth platform accommodates laptops and tablets up to 15.6 inches(Diagonal), making it a versatile accessory and one of the best gifts for mom, dad, students and professionals. Perfect for use as a laptop bed tray or tablet holder anywhere at home, library, or park.
-
Account and folder access: The task’s run identity needs permission to execute Node.js and read the project files and write to the output folder. Test using the same account and task configuration.
Recommended Free Tools
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy. -
Paths and working directory: Use full paths for the executable and script, and set the task’s Start in folder. Relative paths can otherwise point somewhere unexpected.
-
Retention: Timestamped screenshots accumulate. Decide how long to keep them and periodically remove old files, or use a fixed output filename if retaining a history is unnecessary.
-
Credentials and sensitive pages: Do not put secrets directly into a script. Capture authenticated or private pages only when the files and task account are protected appropriately.
5. Troubleshoot common failures
| Symptom | Likely cause | What to check |
|---|---|---|
| Task reports success, but no image appears | The script wrote to a different working directory, or the task identity cannot write to the output folder. | Use an absolute output path, set Start in, confirm folder permissions, and inspect the task history and script logs. |
| Browser executable is missing | The Playwright browser runtime was not installed for the project’s installed version, or the scheduled environment cannot access it. | Install the required browser runtime as directed for that Playwright version, then run the script under the same Windows account used by the task. |
| Navigation times out | The website is slow, unreachable, or does not reach the selected wait condition within the timeout. | Check that the target URL opens from the machine. Review whether networkidle is appropriate for that page and adjust the wait strategy or timeout to the page’s behavior. |
| The task runs at an unexpected hour | The Windows time zone or trigger start time does not match the intended local schedule. | Confirm the machine is set to India Standard Time, review the trigger, and check the next-run time displayed by Task Scheduler. |
| Captures stop when nobody is at the PC | The computer is asleep, powered off, or the task is configured for an unavailable sign-in context. | Review the PC’s power state and the task’s run conditions and identity. Check Task Scheduler history after an expected run. |
| Screenshots vary between runs | Dynamic page content, animation, consent UI, personalisation, or differing viewport and wait conditions. | Keep the viewport and capture scope consistent, and wait for the page state you actually need. Some variation is inherent in changing websites. |
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server. A single GET request can return an image or PDF; schedule that request with Windows Task Scheduler if you want recurring captures without installing and managing a local browser. Put your API key in a protected environment or secret store rather than hard-coding it.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Best Value
- Spacious Design: Measuring 21.1" wide and 12" deep, our lap desk comfortably fits most laptops up to 15.6". Extra room for accessories ensures convenience.
- Enhanced Functionality: Packed with handy features, including a 5x9" precision tracking mouse pad and a built-in phone slot for seamless work or video calls. Plus, enjoy laptop support with the integrated device ledge.
- Cool Comfort: Enjoy a stable surface with our lap desk's dual bolster cushion, designed for comfort and airflow, keeping your lap cool during extended use.
- Durable Surface: Work with confidence on our lap desk's solid surface, featuring a blush pink color, ensuring optimal air circulation to prevent your laptop from overheating.
- On-the-Go Convenience: With an integrated handle and lightweight design (2.14 lbs), our lap desk is portable for travel or moving around the house, offering flexibility in any space.
cURL example, saving a WebP capture of the example page:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
For recurring captures with a timestamped filename, use a PowerShell wrapper or adjust the output naming in the surrounding task setup. See the ScreenshotNeo documentation for request parameters.
-
Cookie and consent banners are accepted and more than 60 known consent platforms, newsletter popups, and chat widgets are removed before capture; each step can be turned off.
-
Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed. Responses include
X-Page-VerdictandX-Billedheaders.Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsSpecial offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy. -
An MCP server provides
take_screenshot,get_page_info, andcapture_pdftools for AI agents, including Claude, Cursor, and other MCP clients. -
The free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots. All features are available on every plan.
Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.
Frequently Asked Questions
Does the screenshot script itself set the recurrence?
No. The script performs a capture each time it runs; Windows Task Scheduler determines when it runs.
Can the same workflow create a PDF instead of a PNG?
Playwright’s Page screenshot method is for image output. This article’s script saves a PNG; use a PDF-capable capture workflow if PDF output is required.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




