actually , msvcrt.dll contains all the stuff you need , you are very inclined to this kind of stuff , take a look at the native CRT functions
that would be very helpful to solve problems
you can make almost everthing with that , except the advanced data type casting
i made a sample plugin project with your codes to show how to do that
it is a ready to compile/use project , so just build it and then add to a project
and then you can test it like below
Code: Select all
local bResult = CustomClipBoard.ClipSetText("CustomClipBoard Plugin");
if(bResult)then
local sText = CustomClipBoard.ClipGetText();
Dialog.Message("Notice", "Text in clipboard now: \r\n\r\n"..sText, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
else
Dialog.Message("Notice", "Error.. Failed to put text to clipboard", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end