///////////////////////////////
#include <acknex.h>
#include <default.c>
#include <windows.h>
///////////////////////////////
TEXT* input_txt=
{
layer=31;
pos_x=100;
pos_y=100;
strings=1;
flags = TRANSLUCENT | SHOW;
}
void main()
{
warn_level=6;
char *temp="";
char *final="";
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 ?
{
final=temp;
}
GlobalUnlock(data);//unlock
}
CloseClipboard();//close clipboard
}
}
str_cpy((input_txt.pstring)[0],"");
str_cat((input_txt.pstring)[0],final);
//printf("%s",_chr((input_txt.pstring)[0]) );
}