quote:
Originally posted by Dark_Angel_Pt
thanks for this great script
Can i suggest one more thing? Can you add an option to choose the sound? So instead of a beep i can choose other sound.
That is already in Messenger Plus! Live...
Set an event for "user has started new chat" with the sound of your likings (or leave the field empty for the default sound).
--------------------------------------------------------------------
@DarkRaider
Had a quick glance over this script:
- OnEvent_Uninitialize(bMessengerExit) is empty... remove it
or better: make a "EndProcedure()" function which includes the disabling of the timers and uninitializing the used objects (eg fso; but I rather suggest to make the fso object locally, not globally!). People can disable a script while a chat window is still open, an unexpected error might occur, etc... (EDIT: see next reply for example of what I mean)
- OnEvent_ChatWndEditKeyDown misses the cancelling of the timer check2 (also see first point).
- Function OnEvent_Timer(sTimerId) can be made much shorter. No need for stating those Interop.Calls twice. The only thing different between the two sTimerids is the enabling/disabling of the timers, so only that should be in the if then else structure.
- Variable ConfigFolder doesn't need to be globally declared.
- Spelling error: //If the confif file doesnt exist create a default one