some tips
quote:
Originally posted by SpunkyLoveMuff
Accesses the registry a lot so just check to make sure that your computer doesn't slow down too much (shouldn't do )
Rethink your whole script/logic to avoid that.
You do not need to access the registry that many times like you do (every second), that's rather useless...
In fact, you don't need to use the registry at all. There is no reason why you should save the time to the registry when the status is set and especially no reason to save the elapsed time every second to the registry only to read it out when you recieve a message.
Instead, get the time as soon as the status changes and save that to a global variable. When you recieve a message, work out the elapsed time from that saved variable using the current time. No need for registry access at all in that way (and much more logic)...
---------------
PS: intend your scriptlines with tabs, it is a pain in the rear end to view/edit your script as-is
---------------
additional note: the intention of the script is nice. But maybe also make a script which simply adds some additional tags to Messenger Plus! so the user can use those tags (time since status was activated) inside the already existing away message system of Messenger Plus!.
Remember that there are already tags the user can use (!PS_R), (!PS_RH), (!PS_RM) and (!PS_RS) for the remaining time, so simply make a script which adds (!PS_E), (!PS_EH), (!PS_EM) and (!PS_ES) for elapsed time.
And remember that there are already shortcuts available for customized statusses, quicktexts you can use to shorten the command to activate an away status, etc.