PDA

View Full Version : Getting info from notification queue to UI?


Sunra
29th November 2008, 01:44 AM
I'm asking this here because I can't seem to register over at the Chi Tai forums.

I use pTravelAlarm as my alarmclock. It's a today plug-in so I can't get it to fit in with a lot of the nice skins that are floating around.

I was wondering if I can get one of the UI's (preferably HS++) to read from the notification queue. This way I can make my own button that displays if an alarm is set and if so at which time.

If this is possible with any of the other UI's I can look into those.

mr_deimos
29th November 2008, 03:09 AM
Are you sure that notification queue is the only way? Most alarm clocks i've seen also store their alarms info somewhere else, usually in the registry. Even if the data is not ready for direct use (like one DWORD 124520081124, meaning an alarm is set for 12:45, on 2008-11-24), you might try running periodically a mortscript that would transform it into usable data. Updating even once an hour should be enough. And you wouldn't really notice any performance loss. I once had a mortscript checking every 10 seconds if headphones are connected. It run a player when headphones were connected and closed it if they were disconnected. Even on a relatively slow device (HTC Wizard) i couldn't notice any additional CPU load.

Sunra
29th November 2008, 06:53 AM
Why make it harder than it is? This did the trick. :rolleyes: Probably explains why I couldn't find any related information...