Shoutbox

Remove script event - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Remove script event (/showthread.php?tid=85617)

Remove script event by CZFilip on 08-27-2008 at 09:07 AM

Hi,
can I detect , when user removing script and do some code before it'll be removed? Or can I detected when remove button was clicked? Thanks for answers :) Filip


RE: Remove script event by mynetx on 08-27-2008 at 09:14 AM

Hello Filip,

I don't think that you can detect such event. Just imagine a case when a malicious script would detect that and prevent its removal...


RE: Remove script event by CookieRevised on 08-27-2008 at 09:33 AM

As said by mynetx, no you can't...

But why do you want to execute code when the user removes the script and what exactly is that code?

Because, if it is some cleanup stuff (eg: removing temporary files created by your script) or something like that, you should already do that in the Uninitialize() event or even in the SignOut() event.


RE: Remove script event by CZFilip on 08-27-2008 at 10:15 AM

No cleanup :) I had an idea for script. I saw in some scripts, that some authors want to know , how many users using their script ( so they sending some infos to their server ). So I get an idea for something as script indexing spider (when user add or remove script -> generate report about all used scripts and send it to the server -> reports = for ex. UpdateId, Version, BuildNumber from ScriptInfo.xml) . But it has a lot of problems and you never get true statistics and you never get this script to all computers ( Only way is put some code into script, which you want to index but in result it's same what authors using right now.) So it was bad idea, but thanks for answers.