Windows Task-Bar Notifications
-
- Posts: 9
- Joined: Tue Oct 27, 2015 6:36 am
Windows Task-Bar Notifications
Is there a function to "gag" when Mudlet blinks on the Windows taskbar?
-
- Posts: 9
- Joined: Tue Oct 27, 2015 6:36 am
Re: Windows Task-Bar Notifications
I'm not sure if this will help...
Then we'd just need a way to stop it from flashing for a specific line of data...
Code: Select all
void cTelnet::postData()
{
//QString cd = incomingDataDecoder->toUnicode( mMudData.data(), mMudData.size() );
mpHost->mpConsole->printOnDisplay( mMudData );
if( mAlertOnNewData )
{
QApplication::alert( mudlet::self(), 0 );
[color=#008000]mpHost->raiseEvent( &me );[/color]
}
}
- SlySven
- Posts: 1019
- Joined: Mon Mar 04, 2013 3:40 pm
- Location: Deepest Wiltshire, UK
- Discord: SlySven#2703
Re: Windows Task-Bar Notifications
Um, I think you need a bit more code to create and initialise a TEvent instance (which you have called me) which will be needed if your script system is to get an "event" when something (pretty much anything) comes from the MUD server. Is that what you wanted or did you want to have a finer control over what caused the Mudlet Application to "perk-up" when "something happens" from the other end?
Assuming you have a trigger that fires on anything that comes in I think you could detect this and create a event yourself though at present I don't think you can activate the QApplicatiom::alert() yourself when you had encountered the wanted input...
Assuming you have a trigger that fires on anything that comes in I think you could detect this and create a event yourself though at present I don't think you can activate the QApplicatiom::alert() yourself when you had encountered the wanted input...
-
- Posts: 9
- Joined: Tue Oct 27, 2015 6:36 am
Re: Windows Task-Bar Notifications
I went hacking around the source files. My coding skills are... meh.
I'm not sure what would be the most efficient way to code it in, but, as there's no function to detect if the window is flashing, there's no way to STOP it from flashing.
I suppose if the event were made, then a lua function could be added to trigger off that event to set a global lua variable "isFlashing?" to true.
I'm not sure how an interrupt-alert would work, but I suppose a "noAlert()" function could be coded so that a specific triggered line or w/e doesn't sent a flashing notification.
I'm not sure what would be the most efficient way to code it in, but, as there's no function to detect if the window is flashing, there's no way to STOP it from flashing.
I suppose if the event were made, then a lua function could be added to trigger off that event to set a global lua variable "isFlashing?" to true.
I'm not sure how an interrupt-alert would work, but I suppose a "noAlert()" function could be coded so that a specific triggered line or w/e doesn't sent a flashing notification.