 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Mon Dec 01, 2008 7:03 pm
Pop up alerts |
Is it possible to implement a feature in CMUD that allows users to design their own pop alerts to run based off scripts or triggers? These alerts would work sort of like the ones for MSN, AIM, or Microsoft Outlook, unobtrusive, and near the tray. The important thing is that they are simply an optional feature that people can set up for alerts in case they are not looking at the window. No one would have this forced on them, it would not be used for CMUD alerts, it would be simply something you could use via trigger, perhaps something like:
#POP Text here
The small pop up box in the corner would be of standard design, with text put there according to the command. If you really want, you could offer options for how long the window lasts, how it fades, etc... |
|
|
|
 |
intoK Apprentice
Joined: 18 Feb 2007 Posts: 190
|
Posted: Mon Dec 01, 2008 7:40 pm |
read up #HELP MES
|
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Mon Dec 01, 2008 7:50 pm |
That came up with an error of not found for me. You mean message?
Edit: Nevermind, found it. |
|
_________________ Listen to my Guitar - If you like it, listen to more
Last edited by chamenas on Mon Dec 01, 2008 7:55 pm; edited 1 time in total |
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Dec 01, 2008 7:54 pm |
While it's kind of crude (it's an older command so not always pretty) #MESSAGE should do what you want.
Consider
| Code: |
| #alarm 30 {#mess 10 "This is a test"} |
|
|
_________________ Asati di tempari! |
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Mon Dec 01, 2008 8:05 pm |
The only problem is that it still shows these even if CMUD is focused on and, in fact, if I focus on another object, it doesn't stay on top, but thank you for showing me, it will certainly work at the very least.
Edit:
Hrm, no specifications for height and width can cause problems since it just extends horizontally. There could be a lot of options included in this, more work, but it would make it more useful. |
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Mon Dec 01, 2008 8:34 pm |
Perhaps a message function could be created that could hold more parameters. The only thing I'm wondering is if you can use %1, %2, etc.. in the function like you can after the command. In any case, the parameters could control: height, width, X-axis (location), Y-axis (location), number of seconds lasting, message, background color, text color
Would take more work, would anyone use it? |
|
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Dec 01, 2008 9:05 pm |
Not sure... anything I could think to use it for I would probably do with flyout windows. As it stands now, I mostly use it to display debug messages that I don't want to be accidentally triggered on.
|
|
_________________ Asati di tempari! |
|
|
 |
charneus Wizard

Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Mon Dec 01, 2008 9:22 pm |
Not sure if it's possible this way, but perhaps a javascript or %mss can do the trick? I haven't even thought about things like that, but it might be doable. *shrug* just a thought.
Charneus |
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Mon Dec 01, 2008 9:52 pm |
| Tech wrote: |
| Not sure... anything I could think to use it for I would probably do with flyout windows. As it stands now, I mostly use it to display debug messages that I don't want to be accidentally triggered on. |
I'm not exactly certain of the difference between the window created by message and a flyout window, but my original idea was similar to that of what MSN or AIM uses to notify. |
|
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Dec 01, 2008 10:42 pm |
The flyout windows would most likely bring the entire application to foreground. I remember playing around with this a while back it's been a while. Plus with flyout windows the window would have to be defined already.
|
|
_________________ Asati di tempari! |
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Tue Dec 02, 2008 12:21 am |
Ah, well I don't want the entire application in the foreground! Oh well, I will make do.
|
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue Dec 02, 2008 10:05 am |
You could probably get a COM-enabled (or Lua/JScript/whatever) DLL that provides the sort of popups you want. There're quite a few different apps that use this sort of thing.
Also, you might get some mileage out of finding a way to trigger Windows' own balloon popups, you know, the ones that tell you when you've plugged something in a USB port or when there're Windows updates to download. |
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Tue Dec 02, 2008 5:04 pm |
Any links to good COM resources so I can learn?
|
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Tue Dec 02, 2008 11:21 pm |
Is there a reason why Message jumps focus back to CMUD if you're doing something else in CMUD? It's a bit annoying to work in the package editor only to be jolted back because of a message! Personally I'd just like to only have messages sent when I'm not focused on the program CMUD in some way.
|
|
|
|
 |
|
|
|