[Request] Fast & Simple Away/Busy System :) - 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: [Request] Fast & Simple Away/Busy System :) (/showthread.php?tid=64667) [Request] Fast & Simple Away/Busy System :) by artfuldodga on 08-08-2006 at 06:23 PM
I was wondering is there a small script, that when you set yourself to Away or Busy, a small window will popup asking you: RE: [Request] Fast & Simple Away/Busy System :) by Spunky on 08-08-2006 at 06:38 PM I'll have a go at it for you now... Might take about an hour or 2 RE: [Request] Fast & Simple Away/Busy System :) by artfuldodga on 08-08-2006 at 06:39 PM sweet take your time. RE: [Request] Fast & Simple Away/Busy System :) by Spunky on 08-09-2006 at 03:40 PM Sorry for the delay... The script is complete, except for so far the message send everytime the contacts sends you a message. Working on it now RE: [Request] Fast & Simple Away/Busy System :) by problem-solver-wlm on 08-09-2006 at 03:46 PM
i would love this script because im lazy to do the personlized status. RE: [Request] Fast & Simple Away/Busy System :) by RaceProUK on 08-09-2006 at 03:49 PM Sorry to spoil the fun, but doesn't '/away Off to work!' set 'Off to work!' as an auto-responder? RE: [Request] Fast & Simple Away/Busy System :) by artfuldodga on 08-09-2006 at 04:45 PM
it probably does, but i'd say just clicking 'away' .. and entering a msg, most people would rather do, that and.. maybe you don't want to have to open somebodys window... what if you aren't talking to anyone? RE: [Request] Fast & Simple Away/Busy System :) by problem-solver-wlm on 08-09-2006 at 06:53 PM
any news on the script? RE: [Request] Fast & Simple Away/Busy System :) by Spunky on 08-09-2006 at 06:54 PM Working on the last part now... Possibly "finished" in about 20 mins RE: [Request] Fast & Simple Away/Busy System :) by cloudhunter on 08-09-2006 at 06:55 PM
Meh, it's not much effort to open someones window, say /away off to work and then close it again. RE: [Request] Fast & Simple Away/Busy System :) by Spunky on 08-09-2006 at 07:09 PM
Ta da! Big fanfair if you please! Works locally on my PC. Accesses the registry a lot so just check to make sure that your computer doesn't slow down too much (shouldn't do ) RE: [Request] Fast & Simple Away/Busy System :) by problem-solver-wlm on 08-09-2006 at 07:19 PM
brilliant thanks should upload it to the script database if you havnt already RE: [Request] Fast & Simple Away/Busy System :) by Spunky on 08-09-2006 at 07:20 PM I'll wait for people to report all the errors before I do that Just a little bit of feedback though and I should upload it RE: [Request] Fast & Simple Away/Busy System :) by artfuldodga on 08-09-2006 at 08:00 PM
works alright it seems... still testing it RE: [Request] Fast & Simple Away/Busy System :) by Spunky on 08-09-2006 at 08:41 PM
Ok the reason the name changes when copied and pasted is because it's using the "/me" command to display your name (this is also what makes the font purple). I dont see why they would be copying and pasting it back to you anyway... I used this as otherwise it would say: RE: [Request] Fast & Simple Away/Busy System :) by artfuldodga on 08-09-2006 at 08:46 PM
yeah, guess i was being nit picky about the pasting back hm.. RE: [Request] Fast & Simple Away/Busy System :) by Spunky on 08-11-2006 at 05:15 PM If you want to choose different colours, people would be able to see the [c=?] tag the same way you can see the [b] tag if they don't have Plus! I gotta ask a question about this anyway RE: [Request] Fast & Simple Away/Busy System :) by artfuldodga on 08-11-2006 at 05:30 PM
I meant if you go the other way without using Plus! tags RE: [Request] Fast & Simple Away/Busy System :) by Spunky on 08-11-2006 at 05:33 PM
I think I understand what you mean RE: RE: [Request] Fast & Simple Away/Busy System :) by CookieRevised on 08-12-2006 at 09:09 AM
some tips quote: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. RE: [Request] Fast & Simple Away/Busy System :) by Spunky on 08-12-2006 at 11:58 AM
Ok, I'll change some of things around. The reason for using the registry a lot is because globsl variables just didn't seem to be working (would change to undefined when read from a function). RE: [Request] Fast & Simple Away/Busy System :) by CookieRevised on 08-12-2006 at 01:13 PM
If a global variable is 'undefined' when you read it inside a function it is most likely not a global variable in the first place or wrongly declared to begin with. RE: [Request] Fast & Simple Away/Busy System :) by Spunky on 08-12-2006 at 03:33 PM
Thanks a lot, thats fantastic! code:Obviously, not possible with this. I have declared variables out of functions etc in other scripts but didn't define the type so just using something like code: I've taught myself a lot of languages, but rarely get past the basics. This is (after Java) one of the hardest to get used to, probably because it seems to borrow some parts from other languages, but not others I like to learn though and I also like to help, so I'll keep trying RE: [Request] Fast & Simple Away/Busy System :) by artfuldodga on 08-12-2006 at 04:58 PM
nice job on the script CookieRevised RE: RE: [Request] Fast & Simple Away/Busy System :) by CookieRevised on 08-12-2006 at 05:37 PM
quote:That's no problem. The value assigned to the variable isn't important (JScript changes the type of the variable on the fly if it needs to be anyway), as long as it is declared with the var statement that's enough.... I assigned values to the global variables using the new operator in the script I attached because: 1) it is easy to see what the variable is going to be used as. 2) it also initializes the variables to the proper values (especially important for the DateTimeSet variable which is assign the current date and time at that point when the script initializes). quote:The error is mostlikely on your part (missing the popup window because it is behind other windows for example) since as you can see from the code, nothing can go wrong with it as it is very very very basic: code:It does nothing more than resetting the reason, the array with emails to check and the datetime each time you change status. And if the new status is either Away or Busy it shows the popup window. In fact, since it shows the popup each time you change status to away or busy and since you didn't set any reason, you mostlikely would ended up with a whole bunch of popup windows (this can be overcome by adding a check for it before the window is created though; but that isn't the issue here). (also note that the script doesn't set any status, it reacts on status change) |