Jump to content

How Set Auto Activate Plugin When Dvbviewer Loaded


Recommended Posts

huh? Your plugin should be auto activated, if you are exporting the right functions... just try, your dllattach should be called and some other.. ;)

The plugin has to decide for itself if it's "active" or not.

Link to comment
Ok, thx i must try this :)

--------------

Yes its working. Thanks

 

So i have now another problem when i activate my plugin with this procedure:

 

procedure DLLHandler(Reason: Integer);
begin
 case Reason of
   0 : begin //detach
        if assigned(frmMain) then frmMain.Free;
        frmMain:=NIL;
       end;
   1 : begin //attach
         MenuItemClick(34000);
         SetState(34000,MF_CHECKED);
       end;
 end;
end;

 

Plugin is activated but in menu is not displayed it is actviated, when i deactivate plugin in menu and actovate it again in menu my plugin is marked as checked (active). I dont know why. Anybody explain me this problem, and find solution?

Link to comment

Don't do it in DLLMain. The app might even deadlock if your initialisation stuff (indirectly) entails loading another DLL (not DVBViewer, but OS specific). Better do it when DVBViewer passes the menu handle to your plugin (SetMenuHandle procedure), which is early enough.

Link to comment
Don't do it in DLLMain. The app might even deadlock if your initialisation stuff (indirectly) entails loading another DLL (not DVBViewer, but OS specific). Better do it when DVBViewer passes the menu handle to your plugin (SetMenuHandle procedure), which is early enough.

 

 

Thanks, i changed this and now its working !!!!!!!!!!!!.

 

 

So i have another question, its possible to display simple text line (without header and boxes - just simply test) in fixed position on screen with COM interface????

 

I cant find method like this

 

Regards

Edited by leonh
Link to comment

Sorry, I don't know the DVBViewer Pro COM interface, so I can't help you.

 

I would post this question in the COM / Scripting section of this board. Probably Lars or another experienced member can answer it.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...