Только не забудьте определить DllDir... не забудте "\\" в конце пути
#############################
# Clipboard module
###########################
extern int _clipbrd_save(string filebase,int option);
extern int _clipbrd_empty();
extern int _clipbrd_restore(string filebase);
## option constants
#Save text only:
public const cc_txt=0;
#Save emf:
public const cc_emf=1;
#Save bmp:
public const cc_bmp=2;
#Save all three above:
public const cc_all_std=3;
## end option constants
# filebase - filepath + filename without(!) extension - extension will be added by DLL function
# note, that one extra file is saved (*.cft) with list of saved formats
public function clipbrd_save(filebase,option)
{
auto rc;
load_dll(DllDir&"CbrdChk.dll");
rc=_clipbrd_save(filebase,option);
unload_dll(DllDir&"CbrdChk.dll");
return rc;
}
public function clipbrd_empty()
{
auto rc;
load_dll(DllDir&"CbrdChk.dll");
rc=_clipbrd_empty();
unload_dll(DllDir&"CbrdChk.dll");
return rc;
}
#restore clipboard from files, previously saved by clipbrd_save
public function clipbrd_restore(in filebase)
{
auto rc;
load_dll(DllDir&"CbrdChk.dll");
rc=_clipbrd_restore(filebase);
unload_dll(DllDir&"CbrdChk.dll");
return rc;
}
#####################
# End of clipboard module
#####################
Прикрепленные файлы
Сообщение отредактировал Mike: 12 августа 2005 - 10:25



