///////////////////////////////
#include <acknex.h>
#include <default.c>
#include <windows.h>
///////////////////////////////
void main()
{
level_load("");
STRING *temp="";
char final[256]; // max length
if(IsClipboardFormatAvailable(CF_OEMTEXT))//is this format available ?
{
if(OpenClipboard(hWnd))//open the clipboard
{
HANDLE data=GetClipboardData(CF_OEMTEXT);
if(data!=NULL)//got handle ?
{
temp=GlobalLock(data);//lock
if(temp!=NULL)//got it ?
{
// Copy here, don't use reference
// Also use strcpy and not str_cpy
// as we work with c-strings, not
// Lite-C STRINGS
strcpy(final, temp;)
}
GlobalUnlock(data);//unlock
}
CloseClipboard();//close clipboard
}
}
printf("%s",final);
sys_exit("");
}