Load / Unload Script (when WLM is running or not) - Script Installer |
Author: |
Message: |
sbegouin
Junior Member
Posts: 25
Joined: Sep 2005
|
O.P. Load / Unload Script (when WLM is running or not) - Script Installer
Is there a way to load / unload a script from another application, without having the confirmation box when loading a *.plsc file ?
With the plugins, I used (Delphi code) :
code: hPluginChange := RegisterWindowMessage('MessengerPlus_PluginChange');
PostMessage(HWND_BROADCAST, hPluginChange, 0, 0);
But what can I do for scripts ?
This post was edited on 07-04-2006 at 08:04 PM by sbegouin.
|
|
07-03-2006 06:49 AM |
|
|
Mnjul
forum super mod
plz wub me
Posts: 5396 Reputation: 58
– / /
Joined: Nov 2002
Status: Away
|
RE: Load / Unload Script
There is no way to do so I'm afraid...
Well, you could simulate mouse/keyboard events to "fake open" Plus! Preferences and its Scripts section, and "fake click" the checkbox, but I guess that's a little bit troublesome and not very reliable.
|
|
07-03-2006 10:39 AM |
|
|
segosa
Community's Choice
Posts: 1407 Reputation: 92
Joined: Feb 2003
|
RE: Load / Unload Script
Make a 'fake edit' to one of the script files (e.g., add a space to the end, remove it, save) or something like that.
Bit of a crappy and unreliable way though.
The previous sentence is false. The following sentence is true.
|
|
07-03-2006 10:59 AM |
|
|
sbegouin
Junior Member
Posts: 25
Joined: Sep 2005
|
O.P. RE: Load / Unload Script
OK, thanks !
So, there is no way to install Scripts when WLM is not running ?!...
|
|
07-04-2006 10:30 AM |
|
|
alexp2_ad
Scripting Contest Winner
Who love the chocolate?
Posts: 691 Reputation: 26
37 / / –
Joined: May 2004
Status: Away
|
RE: Load / Unload Script when WLM is not running
You could install / disable scripts when plus isn't running, you just have to add the right registry keys to HKEY_CURRENT_USER\Software\Patchou\Messenger Plus! Live\GlobalSettings\Scripts and the right files in the script directory.
Or remove them to remove the script.
If WLM isn't running that'll work fine.
This post was edited on 07-04-2006 at 10:38 AM by alexp2_ad.
|
|
07-04-2006 10:37 AM |
|
|
sbegouin
Junior Member
Posts: 25
Joined: Sep 2005
|
O.P. RE: Load / Unload Script (when WLM is running or not)
Thanks ! You're right ! When WLM is not running it's easy.
This post was edited on 07-04-2006 at 08:03 PM by sbegouin.
|
|
07-04-2006 10:50 AM |
|
|
sbegouin
Junior Member
Posts: 25
Joined: Sep 2005
|
O.P. RE: Load / Unload Script (when WLM is running or not)
Is there a clean method to do this when WLM is running :
- for loading a script : without having the confirmation box when loading a *.plsc file ?...
- for unloading a script : without having to do "fake clicks" on the buttons ?
|
|
07-04-2006 08:03 PM |
|
|
CookieRevised
Elite Member
Posts: 15517 Reputation: 173
– / /
Joined: Jul 2003
Status: Away
|
RE: Load / Unload Script (when WLM is running or not) - Script Installer
quote: Originally posted by sbegouin
Is there a clean method to do this when WLM is running :
- for loading a script : without having the confirmation box when loading a *.plsc file ?...
- for unloading a script : without having to do "fake clicks" on the buttons ?
As said in the first reply in this thread: nope....
And actually, I would find it dangerous when scripts can be added without the confirmation box!! That confirmation box is there for a perfect good reason though: to warn people about the possebility of danger when installing a script. Hence why there is also a checkbox to be checked before one could install a script (yes there are ways around the confirmation when WLM isn't running, but still...).
This post was edited on 07-04-2006 at 09:02 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
|
|
07-04-2006 08:35 PM |
|
|
Choli
Elite Member
Choli
Posts: 4714 Reputation: 42
43 / /
Joined: Jan 2003
|
RE: Load / Unload Script (when WLM is running or not) - Script Installer
quote: Originally posted by segosa
Make a 'fake edit' to one of the script files (e.g., add a space to the end, remove it, save) or something like that.
Bit of a crappy and unreliable way though.
that only works in "debug mode", and Patchou explicitly said not to make scripts that rely on that feature of Plus. It's only purpose is to help developers while they're coding the script.
|
|
07-04-2006 09:25 PM |
|
|
sbegouin
Junior Member
Posts: 25
Joined: Sep 2005
|
O.P. RE: Load / Unload Script (when WLM is running or not) - Script Installer
OK !
So, there is no clear way to uninstall (from another program) a script when WLM is running...
This post was edited on 07-05-2006 at 01:40 PM by sbegouin.
|
|
07-05-2006 01:38 PM |
|
|
|