#include <windows.h>
#include <ios>
int main()
{
while(1)
{
if(GetAsyncKeyState(VK_LCONTROL)&1)
{
if(OpenClipboard(NULL))
{
char *ha = (char*)GetClipboardData(CF_TEXT);
std::string tmp(ha);
if(!tmp.find("http://screensnapr.com/v/"))
{
memcpy(ha, "http://screensnapr.com/e/", strlen("http://screensnapr.com/e/"));
EmptyClipboard();
SetClipboardData(CF_TEXT, (HANDLE)ha);
}
CloseClipboard();
}
}
Sleep(100);
}
}
#include <windows.h>
#include <tchar.h>
#include <iostream>
#include <time.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/timeb.h>
void __cdecl add_log(const char * fmt, ...)
{
#ifndef _NO_ADD
va_list va_alist;
char logbuf[256];
FILE * fp;
struct tm * current_tm;
time_t current_time;
time (¤t_time);
current_tm = localtime (¤t_time);
sprintf (logbuf, "[%02d:%02d:%02d] ", current_tm->tm_hour, current_tm->tm_min, current_tm->tm_sec);
va_start (va_alist, fmt);
_vsnprintf (logbuf+strlen(logbuf), sizeof(logbuf) - strlen(logbuf), fmt, va_alist);
va_end (va_alist);
if ( (fp = fopen ( FILELOCATION , "a")) != NULL )
{
fprintf ( fp, "%s\n", logbuf );
fclose (fp);
}
#endif _NO_ADD
}
if(!tmp.find("http://screensnapr.com/v/"))

#include <windows.h>
#include <ios>
int main()
{
while(1)
{
if(GetAsyncKeyState(VK_LCONTROL)&1)
{
if(OpenClipboard(NULL))
{
std::string tmp = (char*)GetClipboardData(CF_TEXT);
int i;
if(!i = tmp.find("http://screensnapr.com/v/"))
{
tmp.replace(//Gahh! cba to finish! D=
EmptyClipboard();
SetClipboardData(CF_TEXT, (HANDLE)ha);
}
CloseClipboard();
}
}
Sleep(100);
}
}