Is there a way to have one's plugin launched as soon as TC starts?
I mean, just launch the DLL_PROCESS_ATTACH, not view it in the panel.
Because, in my case, I have a timer (with an interval of 60 seconds) in my plugin and I need events to be executed as soon as TC starts, not only when the user enters it.
Launch plugins at startup
Moderators: Hacker, petermad, Stefan2, white
- fabiochelly
- Power Member
- Posts: 603
- Joined: 2003-02-05, 12:03 UTC
- Location: Rambouillet, France
Launch plugins at startup
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
- André Martin
- Senior Member
- Posts: 245
- Joined: 2003-02-05, 15:46 UTC
- Location: Dresden, Germany
You mean the DllEntryPoint function with reason=DLL_PROCESS_ATTACH as parameter...
This is not possible because the plugin will be loaded (and DllEntryPoint will be called) only when the user tries to use it... (e.g. open the plugins root \\pluginname\).
But why does your timer need to be activated before the user opens your plugin?
This is not possible because the plugin will be loaded (and DllEntryPoint will be called) only when the user tries to use it... (e.g. open the plugins root \\pluginname\).
But why does your timer need to be activated before the user opens your plugin?
Browse the web with the HTTP SmartBrowserPlugin
Check your mails with the POP3/SMTP EmailPlugin!
Check your mails with the POP3/SMTP EmailPlugin!
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
No, this isn't possible. Why not simply write a separate EXE which you put in the Windows Startup group? It will then run in the background (hidden) and do what you need, even if TC isn't running. Your plugin could then either read the data from a file, or via WM_COPYDATA directly from the running program, e.g. via a hidden window which you can find via FindWindow.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- fabiochelly
- Power Member
- Posts: 603
- Joined: 2003-02-05, 12:03 UTC
- Location: Rambouillet, France
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Why do you need a ShowMessage running all the time?Yes but It's a little too complicated for a function as simple as a showmessage.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- fabiochelly
- Power Member
- Posts: 603
- Joined: 2003-02-05, 12:03 UTC
- Location: Rambouillet, France
For my calendar plugin, users can create events with date and time. It would be useful to have an alert (a showmessage) right on time (only if TC is active).
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous