How To

Prank Your Friends With Screen Melter On Windows

Prank Your Friends With Screen Melter On Windows
Rate this post

Prank Your Friends With Screen Melter On Windows

Computers have become an indispensable part of our lives.And some of our friends might be using Windows OS on their computers.So here, i have got a small program to prank your friends using windows.This program is “Screen Melter”.What this program exactly does is -it creates an melting affect on the desktop.This is the best program to prank your friends.

screen melter

So how to use it? Just read the steps below:

What Is It & How To Use It?

This program code is written in c++ language.So you can edit the code and compile it into an .exe file using visual c++.All you have to do is put the screen melter on your friends computer and run it.You can exit the “Screen Melter” by pressing “Esc” Button. However, if you are familiar with c++ you can edit the code to change the “Esc” key.Take a look at this short video to know how it looks like.


Here is the code:

#include <windows.h>
int nRandWidth = 150, nRandHeight = 15, nSpeed = 0.5;
int nScreenWidth, nScreenHeight;
LRESULT WINAPI MelterProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
switch(Msg){
case WM_CREATE:
{
HDC hdcDesktop = GetDC(HWND_DESKTOP);
HDC hdcWindow = GetDC(hWnd);
BitBlt(hdcWindow, 0, 0, nScreenWidth, nScreenHeight, hdcDesktop, 0, 0, SRCCOPY);
ReleaseDC(hWnd, hdcWindow);
ReleaseDC(HWND_DESKTOP, hdcDesktop);
SetTimer(hWnd, 0, nSpeed, NULL);
ShowWindow(hWnd, SW_SHOW);
}
return 0;
case WM_ERASEBKGND:
return 0;
case WM_PAINT:
ValidateRect(hWnd, NULL);
return 0;
case WM_TIMER:
{
HDC hdcWindow = GetDC(hWnd);
int nXPos = (rand() % nScreenWidth) – (nRandWidth / 2),
nYPos = (rand() % nRandHeight),
nWidth = (rand() % nRandWidth);
BitBlt(hdcWindow, nXPos, nYPos, nWidth, nScreenHeight, hdcWindow, nXPos, 0, SRCCOPY);
ReleaseDC(hWnd, hdcWindow);
}
return 0;
case WM_CLOSE:
case WM_DESTROY:
{
KillTimer(hWnd, 0);
PostQuitMessage(0);
}
return 0;
}
return DefWindowProc(hWnd, Msg, wParam, lParam);
}
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrev, LPSTR lpCmdLine, int nShowCmd)
{
nScreenWidth = GetSystemMetrics(SM_CXSCREEN);
nScreenHeight = GetSystemMetrics(SM_CYSCREEN);
WNDCLASS wndClass = { 0, MelterProc, 0, 0, hInstance, NULL, LoadCursor(NULL, IDC_ARROW), 0, NULL, “Melter” };
if(!RegisterClass(&wndClass)) return MessageBox(HWND_DESKTOP, “Cannot register class!”, NULL, MB_ICONERROR | MB_OK);
HWND hWnd = CreateWindow(“Melter”, NULL, WS_POPUP, 0, 0, nScreenWidth, nScreenHeight, HWND_DESKTOP, NULL, hInstance, NULL);
if(!hWnd) return MessageBox(HWND_DESKTOP, “Cannot create window!”, NULL, MB_ICONERROR | MB_OK);
srand(GetTickCount());
MSG Msg = { 0 };
while(Msg.message != WM_QUIT){
if(PeekMessage(&Msg, NULL, 0, 0, PM_REMOVE)){
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
if(GetAsyncKeyState(VK_ESCAPE) & 0x8000)
DestroyWindow(hWnd);
}
return 0;
}

Download .exe file:

If you don’t know how to compile the c++ code into .exe, then you can directly download the FILE HEREFile size is 3Kb.Check the virustotal report.

What are you waiting for? Get the screen melter and start pranking your friends!

Credits to Napalm & Metalhead for this amazing code.

8 Comments

Post Comment