quote:
Originally posted by Matty
code:
function OnEvent_ChatWndCreated(pChatWnd){
Messenger.MyPersonalMessage = ChatWnds.Count;
}
function OnEvent_ChatWndDestroyed(pChatWnd){
Messenger.MyPersonalMessage = ChatWnds.Count;
}
I suppose that would be the easy way to do it, but it doesn't look very nice does it? Also, it's not customizable and doesn't really explain what the number means to other people...
______________________________________________________
I'm in the process of making a GUI to be able to edit options.
Going to add:
On/Off Option
Customized String - using %chat (and possibly %status)
Customze number of chats before "Busy" Message
Voldemort, you wanted to display the names of people you were talking to. I don't know if this is to be displayed to you or your other contacts so let me know and I'll add it.
Going to use Plus! Window Designer to make the interface just so I can see what it's like... I didn't mind entering numbers in and editing it pixel by pixel though
EDIT: I'm trying to setup some default values for the settings window and store them in the registry. Is there a way to make sure that this only happens the first time the script is run? If I was to just to call the function when the settings window is called, it would overwrite any settigns the user had saved. I've tried checking the value of the ReadRegistry function but it just causes an error and just doesn't trace.
EDIT 2: I've added the custom stuff. You can change how many chat windows have to be open in order for the status message (also custom) to change. You can edit the string using the commands "%chats" and "%status". As of yet there is no way to turn it on or off or save settings. To access the settings window type
"/ocsettings" (I am aware that this cause an error... I'm looking into it). It's obviously not finished so theres errors (such as it saying "1 chats open")... There's nothing serious so try it and let me know. You cannot customize the "Available" text yet without actually editing the code. If you do edit my code, bare in mind that I've been making it so that people can learn from the code, but I still haven't documented what each function does very well and the code is a bit of a mess...