memory functions

General discussion forum for Ams Plugin Maker
User avatar
Serkan
Developer
Developer
Posts: 214
Joined: Thu Jul 04, 2013 8:44 pm
Location: Windows.h
Contact:

Re: memory functions

Post by Serkan »

Hi

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
Attachments
CustomClipBoard.zip
(2.97 KiB) Downloaded 202 times
Post Reply