[Release] toast messages |
Author: |
Message: |
Jiggs
Full Member
Posts: 100
39 / / –
Joined: Jun 2006
|
O.P. [Release] toast messages
EDIT:
Toast Message v. 1.3
by AberNStein
what's new:
- menu says ON or OFF depending on the script's state
- strips format codes from toasts
other features:
- stores the state in registry
- separate registry key for each user
- if toast message is on at sign-in it will toast to let you know
- /toastmsg is case-insensitive
- toasts when you receive a message in a convo that's not in focus
- clicking the toast focuses the convo
- toggle on/off with the menu or /toastmsg
known issues
- the font in the toast is not a fixed width font. for example if your contact's name is all equals signs, then you'd have to truncate at 17 characters. so i've left it at 17. the message thankfully truncates itself.
Download:
http://shoutbox.menthix.net/attachment.php?pid=705982
check AberNSteins Post as it is where he updates the changelog. I'll try keep up with any changes and edit this post.
My (Jiggs) original request:
ok, so, there's a script being made to stop wlm from flashing the task bar when new messages are received, and I'm really looking forward to this, but on top of that, i have a suggestion.
How about a script that shows messages received in a toast, just like the 1st message when no convo window is open yet, each time a message is received. With a menu to turn it on and off easily.
So you could turn it on, and minimize wlm and see what messages you are receiving in a toast that's easily right clicked away, or left clicked to open the convo, without the task-bar popping in front of everything.
And then, when you want to stop the toasts, u just select off in the menu in the convo windows plus menu. Is this possible?
Is it a good idea? I'd like it.
Jiggs
This post was edited on 08-04-2006 at 04:11 PM by Jiggs.
|
|
07-14-2006 07:25 PM |
|
|
AberNStein
Full Member
Posts: 132 Reputation: 2
Joined: Jul 2006
|
RE: [request] toast messages
i'm working on this right now. it's almost done. i just need to figure out how to focus the convo.
|
|
07-14-2006 09:27 PM |
|
|
cooldude_i06
Full Member
I'm so cool I worry myself.
Posts: 272 Reputation: 9
– / / –
Joined: Sep 2003
|
RE: [request] toast messages
quote: Originally posted by AberNStein
i'm working on this right now. it's almost done. i just need to figure out how to focus the convo.
Interop.Call('User32','BringWindowToTop', objPlusWnd.Handle);
Interop.Call('User32','ShowWindow', objPlusWnd.Handle, 1);
|
|
07-14-2006 09:28 PM |
|
|
AberNStein
Full Member
Posts: 132 Reputation: 2
Joined: Jul 2006
|
RE: [request] toast messages
quote: Originally posted by cooldude_i06
Interop.Call('User32','BringWindowToTop', objPlusWnd.Handle);
Interop.Call('User32','ShowWindow', objPlusWnd.Handle, 1);
you rock. i'll post the script in a few minutes.
edit: that's still not working.
code: function OnEvent_Initialize(MessengerStart)
{
}
var toastmsg = '0';
function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
if(Message == "!toastmsg")
{
if(toastmsg == '0')
{
toastmsg = '1'
MsgPlus.DisplayToast("Toast Message","Toast Message is ON");
}
else
{
toastmsg = '0'
MsgPlus.DisplayToast("Toast Message","Toast Message is OFF");
}
return ""
}
}
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
if (toastmsg=='1')
{
if (Origin != Messenger.MyName)
{
if (Message.length + Origin.length < 90)
{
MsgPlus.DisplayToastContact("Toast Message",Origin + " says:",Message,"","focusIt",ChatWnd.Handle);
}
else
{
var newMsg = Message.substr(0,90 - Origin.length) + "...";
MsgPlus.DisplayToastContact("Toast Message",Origin + " says:",newMsg,"","focusIt",ChatWnd.Handle);
}
}
}
}
function focusIt(which)
{
Interop.Call('User32','BringWindowToTop', which);
Interop.Call('User32','ShowWindow', which, 1);
}
function OnEvent_Uninitialize(MessengerExit)
{
}
that's it so far. /toastmsg replaced with !toastmsg so i don't have to send over a scriptinfo.xml too.
p.s. at first i thought it was a crap idea for a script but now i realise i'd use it often.
This post was edited on 07-14-2006 at 10:29 PM by AberNStein.
|
|
07-14-2006 09:34 PM |
|
|
Jiggs
Full Member
Posts: 100
39 / / –
Joined: Jun 2006
|
O.P. RE: [request] toast messages
wow. working on it cos of my request? or scary coincidence?
cool whatever the case. i look forward to it. does it stop the taskbar from flashing? or will we have to wait for the Live! Extender script for that still?
|
|
07-14-2006 10:16 PM |
|
|
AberNStein
Full Member
Posts: 132 Reputation: 2
Joined: Jul 2006
|
RE: RE: [request] toast messages
quote: Originally posted by Jiggs
wow. working on it cos of my request? or scary coincidence?
cool whatever the case. i look forward to it. does it stop the taskbar from flashing? or will we have to wait for the Live! Extender script for that still?
i don't know how to stop the flashing, but i'll look into it
aha! solved it (the focusing, not the flashing).
well sorta.
there are way too many ways to focus a window. i used five.
code: Interop.Call('User32','OpenIcon', which);
Interop.Call('User32','BringWindowToTop', which);
Interop.Call('User32','SetForegroundWindow', which);
Interop.Call('User32','ShowWindow', which, 1);
Interop.Call('User32','SwitchToThisWindow', which, FALSE);
i left out the ones that reposition the window.
|
|
07-14-2006 10:32 PM |
|
|
Jiggs
Full Member
Posts: 100
39 / / –
Joined: Jun 2006
|
O.P. RE: [release] toast messages
works great. but i have some suggestions . wish i could do it myself.
1, it would be good if the toasts didn't pop up when the convo has focus.
2, a menu in the plus menu instead of just commands to turn on and off would be good
3, being able to turn it on for specific contacts only
that's what Ive thought of so far. mostly the popping up when the window already has focus is a little bothersome. but still, great, and thanks for making it so fast after my request. and don't waste any more time on it unless you also see a use for it
thanks again
Jiggs
|
|
07-15-2006 12:03 AM |
|
|
AberNStein
Full Member
Posts: 132 Reputation: 2
Joined: Jul 2006
|
RE: [Release] toast messages
quote: Originally posted by Jiggs
1, it would be good if the toasts didn't pop up when the convo has focus.
that will take some doing, i'll try though
edit: done. in the new version. see bottom of post.
quote: Originally posted by Jiggs
2, a menu in the plus menu instead of just commands to turn on and off would be good
easy. that's just a matter of changing the scriptinfo.xml. i'll do that then upload a new ver.
edit: done. in the new version. see bottom of post.
quote: Originally posted by Jiggs
3, being able to turn it on for specific contacts only
doable, but i'm not quite sure how. i'll go cannibalize someone else's script for that.
edit: still in progress.
double edit: i can do it, but i don't think it's necessary. in fact, i'd never use per-contact toast messages. if lots of people want it i'll add it, but then the menu would have to go i think.
quote: Originally posted by Jiggs
that's what Ive thought of so far. mostly the popping up when the window already has focus is a little bothersome. but still, great, and thanks for making it so fast after my request. and don't waste any more time on it unless you also see a use for it
i've started to use it myself, so i'm gonna continue to work on it.
new version is attached. it has a menu to toggle and doesn't toast when the convo has focus.
this forum doesn't bump the thread when the last post is edited, so i'm gonna bump it right now.
Version 1.0 is attached to the above post. It's been submitted to the script database but the email bounced.
Toast Message v. 1.0 by AberNStein
Short description (1 or 2 lines), this will be shown right under the title.
- Creates toasts of messages recieved in chat windows that aren't in focus.
A full description. Describe what the scripts does, it's features and how to use it.
- Toast Message 1.0 by AberNStein. Toast Message creates a toast of any message recieved in a chat window that isn't in focus. Great for multitasking! Only open up a convo when you need to reply! Type /toastmsg or the button on the menu to toggle on and off Toast Message. It won't toast if the conversation is on top. Clicking on a toast brings the conversation to the top! It even unminimizes it!
Attachment: toastmsg.plsc (1.22 KB)
This file has been downloaded 490 time(s).
This post was edited on 07-15-2006 at 03:28 AM by AberNStein.
|
|
07-15-2006 01:30 AM |
|
|
Mike
Elite Member
Meet the Spam Family!
Posts: 2795 Reputation: 48
32 / /
Joined: Mar 2003
Status: Online
|
RE: [Release] toast messages
quote: Originally posted by AberNStein
Short description (1 or 2 lines), this will be shown right under the title.
- Creates toasts of messages recieved in chat windows that aren't in focus.
Seems like that this is like my script, Message Scroller.
The only difference is, that your script displays new messages in a toast, while my script, displays new messages in a new window.
I was planning to add to display messages in a toast instead of a new window, since Matty suggested me, but I never got to it because of another problem...
|
|
07-15-2006 06:12 AM |
|
|
AberNStein
Full Member
Posts: 132 Reputation: 2
Joined: Jul 2006
|
RE: [Release] toast messages
hmm yours is cool too, i guess.
i don't like the way the position of your message thing resets after you close it.
the translucency is nice though.
anyways it's pretty obvious from this thread that i didn't copy your script.
|
|
07-15-2006 03:24 PM |
|
|
Pages: (8):
« First
[ 1 ]
2
3
4
5
»
Last »
|
|
|