본문 바로가기
Windows

SleepBlocker

Stop sleep, screen-off, and lock with a single click

SleepBlocker is a free 44KB app that keeps your PC awake. No install, no ads, no runtime. Run it once to completely block sleep mode, screen-off, and screen lock on Windows.

v3.7·Published June 15, 2018·Updated July 19, 2026·Downloads 28,476· 4.6 (8)
#절전방지#화면꺼짐방지#포터블#프리웨어#C++#트레이#유틸리티
Downloadv3.7

Overview

You leave your laptop or PC on and step away for a moment, and it drops into sleep mode, the screen goes dark, the lock screen appears... and you have to type your password all over again.

SleepBlocker solves this.

Run it once and it completely blocks your computer from entering sleep mode or turning off the screen. Steadily improved over 7 years since its first release in 2018, it has now reached v3.7.

44KB. This one tiny file is all there is. No installation, no separate runtime. Download, double-click. Done.

Key Features

Fully blocks sleep mode

  • Prevents the system from entering sleep (standby) mode
  • Prevents the monitor from turning off
  • Prevents the screen from locking

Timer

  • Choose 30 min / 1 hour / 2 hours / 4 hours / unlimited
  • Advance alerts 10 minutes and 1 minute before it ends
  • Auto-releases when the set time elapses (safe even if you leave for the day and forget)

Lives in the system tray

  • A coffee-cup icon in the taskbar tray
  • Toggle on/off with a single left-click
  • Full menu on right-click
  • Hover to see the current status and remaining time

Dark / Light mode support

  • Auto-detects the Windows system theme
  • Switch manually between dark and light mode
  • Theme applies to the right-click menu and the info window alike

Real-time status display

  • Active: steam rising from the coffee cup animation
  • Inactive: a gray empty cup
  • See at a glance whether it's running

Launch on Windows startup

  • Register or remove with a single click from the menu
  • Sleep prevention starts automatically when your PC boots

Recommended for

  • Anyone who can't afford the screen going dark mid-presentation
  • Anyone in the middle of a large file download or upload
  • Anyone who needs to keep a remote desktop session alive
  • Anyone encoding, rendering, or converting video
  • Anyone who has to keep a server or device always on
  • Anyone tired of changing Windows power settings every time
  • Anyone who hates re-typing their password after a screen lock

How to Use

  1. Save SleepBlocker.exe wherever you like
  2. Double-click to run
  3. Check for the coffee-cup icon in the tray (steam means it's active)
  4. Sleep prevention activates automatically the moment it runs

Quit: right-click the tray icon → Exit
Toggle: left-click the tray icon

No installation required. Put it on a USB stick and use it anywhere.
To remove it, just delete the exe file. (No registry leftovers.)
If you registered auto-start, please disable it from the menu before deleting.

Why SleepBlocker?

44KB. That really is everything.

Compare for yourself:

  • Similar program A: 5MB + requires the .NET runtime
  • Similar program B: 12MB + requires installation + ads
  • SleepBlocker: 44KB. No install. No ads. No runtime.

This is possible because it's built purely with C++ and the Windows API. It doesn't depend on external libraries and needs no runtime like .NET, Java, or Python.

  • Memory usage: about 2–3MB
  • CPU usage: 0% (event-driven, no resource use when idle)
  • Network: none (fully offline)

Technical Specifications

LanguageC++ 17
UI FrameworkWin32 API (native)
GraphicsGDI (DC_BRUSH/DC_PEN optimized)
Build toolsMSVC (Visual Studio Build Tools)
Architecturex64
Core APISetThreadExecutionState
Menu renderingOwner-Draw custom menu
IconGenerated at runtime via GDI programming
Theme detectionReads the registry AppsUseLightTheme value
Auto-startHKCU\...\Run registry entry

How It Works

It uses the Windows API function SetThreadExecutionState, which continuously tells the operating system that "the system is currently in use."

  • ES_SYSTEM_REQUIRED: prevents system sleep
  • ES_DISPLAY_REQUIRED: prevents the screen from turning off
  • ES_CONTINUOUS: stays in effect after a single call

Because it doesn't change your power settings themselves, quitting the program restores your original power settings exactly. It leaves no side effects on your system.

Version history(6)
v3.7Latest
March 15, 2025
전면 코드 최적화 (GDI 객체 생성 90% 감소). 커스텀 다크/라이트 우클릭 메뉴. 커스텀 정보 다이얼로그 (개발자 링크 포함). exe 아이콘 및 버전 정보 내장. 서브메뉴 화살표 커스텀 렌더링. 애니메이션/tooltip 독립 갱신으로 시스템 부하 최소화. DC_BRUSH/DC_PEN 스톡 오브젝트 활용 최적화. 폰트 캐싱 적용.
v3.0
February 20, 2024
다크 모드 / 라이트 모드 지원. Windows 시스템 테마 자동 감지. UI 전면 리디자인.
v2.5
May 15, 2023
타이머 기능 추가 (30분/1시간/2시간/4시간). 종료 전 알림 기능. 트레이 아이콘 애니메이션 개선.
v2.0
January 20, 2022
시스템 트레이 아이콘 리뉴얼. 커피잔 스팀 애니메이션 추가. 원클릭 토글 기능. Windows 시작 시 자동 실행.
v1.5
March 10, 2020
화면 꺼짐 방지 기능 추가. 트레이 아이콘 tooltip 상태 표시.
v1.0
June 15, 2018
최초 릴리즈. 기본 절전모드 방지 기능.