GitPedia

WinAPI Fun

A collection of (relatively) harmless prank examples using the Windows API

From adeemm·Updated May 31, 2026·View on GitHub·

> A collection of (relatively) harmless prank / virus examples using the Windows API The project is written primarily in Nim, first published in 2016. Key topics include: nim, nim-lang, prank, pranks, virus.

Latest release: v1.0
February 14, 2022View Changelog →

WinAPI-Fun

A collection of (relatively) harmless prank / virus examples using the Windows API

<br>

Pre-built binaries can be found in the Releases section

To reset most examples, re-launch and kill the program again

<br>
FileDescription
avoid.nimThe start button avoids mouse clicks by jumping around on the taskbar
bsod.nimTriggers a Blue Screen of Death
dripper.nimMoves the current window down slightly every 10 seconds
highcontrast.nimEnable high contrast mode system-wide
intercept_space.nimReplaces space bar keypress with the word "space"
mouse_button_swap.nimSwaps the left and right mouse buttons
mouse_cursor.nimChanges the mouse cursor to a finger via a full transparent window
mouse_invert.nimInverts mouse movement on the x and y axes
mouse_trails.nimCreates a trail of mouse icons behind the cursor as it moves
mouse_stop.nimCreates a stop sign that follows the mouse cursor and blocks clicks
mouse_trap.nimTraps the mouse cursor in the top right corner for 60 seconds
random_capslock.nimRandomly toggle the Caps Lock every 0-30 seconds
random_close.nimRandomly closes the current focussed window every 0-30 seconds
rotate.nimRotates the display 180 degrees
shake.nimRapidly shakes the current focussed window
start_disable.nimDisables clicking the start button or taskbar
start_popup.nimOpens the start menu popup randomly every 0-60 seconds
stop_shutdown.nimTemporarily prevents a shutdown with a custom message
time_local.nimAdds the message "HI" to the AM/PM localization string system-wide
<br>

Compilation

Install Nim and the Winim library, then compile with the --app:gui flag

Note: if cross-compiling from Linux or macOS, also install the mingw toolchain and use the -d:mingw flag

sh
nim c -d:mingw --app:gui src/avoid.nim
<br>

Media

Shake

<img src="res/shake.gif"/> <br>

Mouse Stop

<img src="res/mouse_stop.gif"/> <br>

Avoid

<img src="res/avoid.gif"/>

<br> <br>

USE AT YOUR OWN RISK

Contributors

Showing top 1 contributor by commit count.

View all contributors on GitHub →

This article is auto-generated from adeemm/WinAPI-Fun via the GitHub API.Last fetched: 6/14/2026