diff options
author | Alexey Kulakov <panda75@bk.ru> | 2014-12-08 17:39:05 +0000 |
---|---|---|
committer | Alexey Kulakov <panda75@bk.ru> | 2014-12-08 17:39:05 +0000 |
commit | 1b9d8c49650617f71a94744960a08f05ae64e0fe (patch) | |
tree | ea1bc9c1a20cef8e2f140cbda3e90507bea979dd /plugins/Actman/actman.dpr | |
parent | 042d05df11513eb57c0f92c95113f65c73755833 (diff) |
small unneded fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@11277 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Actman/actman.dpr')
-rw-r--r-- | plugins/Actman/actman.dpr | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/Actman/actman.dpr b/plugins/Actman/actman.dpr index 1296ab9f9c..4a5c795bd1 100644 --- a/plugins/Actman/actman.dpr +++ b/plugins/Actman/actman.dpr @@ -126,6 +126,15 @@ begin DestroyServiceFunction(hsel);
end;
+// This function implements autostart action execution after all others plugins loading
+function DoAutostart(wParam:WPARAM;lParam:LPARAM):int;cdecl;
+begin
+ Result:=0;
+ UnhookEvent(onloadhook);
+
+ CallService(MS_ACT_RUNBYNAME,TWPARAM(AutoStartName),0);
+end;
+
function OnModulesLoaded(wParam:WPARAM;lParam:LPARAM):int;cdecl;
var
ptr:pActionLink;
@@ -150,7 +159,7 @@ begin ptr:=ptr^.Next;
end;
- CallService(MS_ACT_RUNBYNAME,TWPARAM(AutoStartName),0);
+ onloadhook:=HookEvent(ME_SYSTEM_MODULESLOADED,@DoAutostart);
end;
function Load():int; cdecl;
|