![]() ![]() For example you could set up events so that pressing a button (Transmits an ON) turns a light on normally, but double-clicking the same button (Transmits a Fast ON) turns the light on and then off again in 5 minutes. ![]() Note that Mark has given us several "Insteon Special Triggers" such as "Fast ON", "Ramp", etc that allow us to give a button multiple purposes. This situation can come up if an OFF command is missed for some reason, the button changed state while HS was not running, power failures, etc. But if you use "Transmits an ON Command" the original state as known by HS doesn't matter. If HS thinks the device is already on, and sees "Changes and Becomes On", the event will not fire. Memory.PP: Suggestion - Instead of using "Changes and becomes On" use the Insteon Special Trigger "Transmits an On Command". Ret = tonumber(DLL.CallFunction(strPath, "irPlg_GetPluginName", memPn.",".memSz, DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL))ĭLL.CallFunction(strPath, "irPlg_GetPluginName", memPn.",".memSz, DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL) ![]() ret = tonumber(DLL.CallFunction(strPath, "irPlg_GetPluginActionXML", memPn.",".memSz, DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL)) Memory.Free(memPn) - release memory on ram of memPnĮndif u see bug please post it, your post really create me happy for this plugin. Memory.Free(memSz) - release memory on ram of memSz Local strPluginName = Memory.GetString(memPn, -1) - get the plugin name MemPn = Memory.ReAllocate(memPn, require_size) - reallocate memPn with require sizeĭLL.CallFunction(strPath, "irPlg_GetPluginName", memPn.",".memSz, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL) Require_size = Memory.GetInt(memSz) - get the require size that dll filled it If ret = -1 then - size of memPn is not enough so dll fill the require size in memSz Ret = tonumber(DLL.CallFunction(strPath, "irPlg_GetPluginName", memPn.",".memSz, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL)) Memory.PutString(memPn, "", -1) all memory have null value dont need this line Memory.PutInt(memSz, 1024) - Size of memPn MemSz = Memory.Allocate(8) - memory for store memPn size MemPn = Memory.Allocate(1024) - memory for store plugin name (this is something like a copyright)ģ) if you create a dll that have a string parameter use memory instead of string, use it better.Ĥ) with this u can create relevance between two or more application that you want create.ĥ) for beginners this can handle (store) any thing on memory (number or string) but be aware after close application all memory poped, be carful.Ĭode: function GetPluginNameFromLMD(strPath) but if you create a plugin with this plugin you MUST write a THANKS to the author of this plugin for create this. (See help file and second attachment)Ģ) with this plugin you can create Plugin, With this & useful tool from reteset you can create powerful Plugin for Example with this i create Clipboard plugin see third attachment. ) with this plugin u can call a dll with refrence. ![]() This plugin very very useful for advanced Programmers and less useful for beginners.ġ) all body know call a functions in dll can be in 2 way by value and by refrence and some dll just use second way for calling or returning (Like GetWindowTextA in user32.dll or. Im back, in this long period im working on some plugin & Program and now im back, for today i create memory plugin And im work on OpenGL Plugin for AMS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |