Jump to content

HILAlarm Plugin for 2003


Guest DocBru

Recommended Posts

Hi,

here is the first release of my first plug-in.

I wanted to use the existing Alarm Plugin around here, but it did not seem to work to well with 2003 (regarding key bindings) and on my phone I would not get into the alarm menu. As I wanted to play around with the Smartphone SDK anyways, I decided to build my own alarm plugin for my phone running WM2003.

After quite much more work than expected :roll: I have something finished now which I think works at least a little :(

The plugin works a little different than others. It does not use the control panel for setting the alarm, it is completely controlled from the homescreen. It basically has three states which are cycling in this order by clicking it:

Alarm Off -> Set Alarm -> Alarm On

While in "Set Alarm" state you can change the hours by pressing left and the minutes by pressing right. Note: The alarm won't become active in the "Set Alarm" state. You have to confirm it (click the plugin).

You can still use the phone's standard alarm setting methods via the settings (at least while you're not in "Set Alarm" state). The plugin should pickup the changed alarm automatically.

The .cab file contains the plugin and also a homescreen example called "HILAlarm-Demo".

A short reference:

  • The plugin clsid is: 61868840-7761-11D9-9669-0800200C9A66
  • The label tag supports the additional state attribute with the values "alarmon", "alarmset", "alarmoff" to only draw in a certain state
  • The tag is supported in text tags for substitution with the current alarm time set. The time format is localized to the phone regional settings.
  • Most of the standard options should be supported (gradient is one which does definitely not, others may not because I didnt test them)
  • See the sample homescreen xml file for an example of the usage.

I'm pretty sure it only runs on 2003 due to some code lines. I tested it in the Microsoft Emulator and on my T-Mobile SDA music.

I'm pretty sure it has loads of bugs, consider it an alpha release for now. Especially around some layouting options. Use this at your own risk :lol: I would nevertheless appreciate if some of you would dare to test it and give me feedback about issues, problems, improvements or just to say it works.

Thanks

Bruno

hilalarm.ARM.CAB

post-109866-1108065379_thumb.gif

Link to comment
Share on other sites

It works a treat m8! Top quality work all round really!! :(

I installed it direct to the phone as it's only 33kb, so I didn't test it on the storage card, but it works fine, the alarm setting is straight forward and not too labourious (although scrolling through minutes/hours is a bit of a pain). The alarm sounded when it said it would, and it snoozed for 10 and went off again.

I have had a quick muck around with the xml, and it seems to respond fine to general x, y and colour values for the text, but I can't seem to get it to set a background image. And the only way I could get rid of the orange highlight bar was to set the default value to transparent. :shock:

What would be really great would be to specify another application to serve as the alarm e.g. citytime alarm - in the same sort of way that the scrolling appointment plugin can be specified to open papyrus or power calendar. I dunno if that's possible, but it would be great if it could.

Nice work all round fella! :lol:

Link to comment
Share on other sites

Hi Drblow,

thanks for your feedback.

To be honest I didnt test the background image :roll: I will check that as soon as I have time.

The orange background color is defined in the default format settings of the home.xml (pretty much at the top). Just remove that or chagne it to whatever works best. The homescreen example is also just a sample, I am no great designer but wanted to deliver something so people can immediately test the plugin without having to integrate it first into their homescreen.

The scrolling is a little slow unfortunately. In my test without background image and without background color it was performing way better... But the idea is that one will not have to change the alarm too much anyways, but just activate / deactive it. I also thought of having the plugin scroll minutes in both directions but that would mean you could not easily change the alarm by some hours. I tested it and the feeling / usability was worse in my mind. Any ideas are appreciated of course.

The plugin uses native windows mobile functionality for the alarm, which should always work. I don't those other alarms and I dont know if they provide an API where I can get / set the alarm, maybe I will find time somewhen to check that. But first I would like to remove other possible bugs.

Thanks

Bruno

Link to comment
Share on other sites

Guest roma0803

Runs very well (WM2003). Setting the time is a bit getting used to. I'm new with smartphones so can't think of a better way right now. Guess I have to learn to edit xml files to make the plugin show on other homescreens.

Nice plugin, for an alpha release it's great. Compliments.

Edited by roma0803
Link to comment
Share on other sites

Which lines?  Is there no way to get them ported?

<{POST_SNAPBACK}>

I'm using an interface to lookup system colors (like COLOR_HOMETEXT) out of the XML file which is only available since 2003.

I am not sure yet how to make that work in 2002.

The other code might be compatible.

Link to comment
Share on other sites

Guest nikjensie

Works great on my E200! Was looking for this since I don't like the existing plugin either. I think the way you've chosen to set the alarm is great, it scrolls just fast enough through the numbers and the "right=mins, left=hours" is plain genious!

Best Regards and THANK YOU!

Nik

Link to comment
Share on other sites

Works great on my E200! Was looking for this since I don't like the existing plugin either. I think the way you've chosen to set the alarm is great, it scrolls just fast enough through the numbers and the "right=mins, left=hours" is plain genious!

Best Regards and THANK YOU!

Nik

<{POST_SNAPBACK}>

The excicting alarmplugin did not work under 2003 when you moved menus/shortcuts around, as it seems to use key emulation. This one is much better. Disadvantage is that you need to go round by numbers if you want the alarm time to be reversed!

Not possible to use joystick afterpressing up.down for numbere and sideways for hours or min. and to finish press again?

Edited by hb88xx
Link to comment
Share on other sites

The excicting alarmplugin did not work under 2003 when you moved menus/shortcuts around, as it seems to use key emulation. This one is much better. Disadvantage is that you need to go round by numbers if you want the alarm time to be reversed!

Not possible to use joystick afterpressing up.down for numbere and sideways for hours or min. and to finish press again?

<{POST_SNAPBACK}>

Sorry I didnt really get what you mean. What do you mean by "alarm time to be reversed"?

btw unfortunately there is only three actions (joystick press, left, right) which I can use... up / down is used by windows for navigating between the plugins

Thanks

Bruno

Link to comment
Share on other sites

Sorry I didnt really get what you mean. What do you mean by "alarm time to be reversed"?

Thanks

Bruno

<{POST_SNAPBACK}>

if you want to go from 9:57 to 9:56 it is 59 minutes forward instead 1 reversed. I did not know if the possibility after pressing you can block use off up./down from plugins till pressing again. seems not according you.

Link to comment
Share on other sites

Great plugin. Works very well on my Audiovox SVT 5600.

Two Minor Issues:

1. When the plugin is initially loaded in the home screen it's blank, until you navigate to it the first time.

2. Outside of your home.xml sample the background highlight bar (the orange background in the screenshot above) does not appear. Instead the text is simply shown in the highlight colour.

Other plugins I have recognize the below tag. I'm guessing yours currently does not:

Thanks for the really utilitarian plugin. Hope you continue to refine it!

-RJ

Link to comment
Share on other sites

if you want to go from 9:57 to 9:56 it is 59 minutes forward instead 1 reversed. I did not know if the possibility after pressing you can block use off up./down from plugins till pressing again. seems not according you.

<{POST_SNAPBACK}>

Got you. Unfortunately it's not possible (at least to my knowledge).

Great plugin.  Works very well on my Audiovox SVT 5600. 

Two Minor Issues:

1.  When the plugin is initially loaded in the home screen it's blank, until you navigate to it the first time.

2.  Outside of your home.xml sample the background highlight bar (the orange background in the screenshot above) does not appear.  Instead the text is simply shown in the highlight colour.

Other plugins I have recognize the below tag.  I'm guessing yours currently does not:

   

Thanks for the really utilitarian plugin.  Hope you continue to refine it!

-RJ

<{POST_SNAPBACK}>

1. is a known issue. I don't really know why it happens, but it's very minor.

2. I recognized that when I built the sample homescreen (thats why it is in the default section :roll: ). Actually it should pick that up, I must have a look what I did wrong there.

Thanks for contributing.

Bruno

Link to comment
Share on other sites

Setting background options for plugin individually and background images should work now.

See attached update

<{POST_SNAPBACK}>

Brilliant!

Application auto reset. I cycled my home-screen and there it was. Very cool. Everything I want in an alarm plugin. Simple and sweet.

Thanks lots!

-RJ

Link to comment
Share on other sites

Guest dlogan1

Setting background options for plugin individually and background images should work now.

OK, I feel really stupid. What am I doing wrong? When I download this file to my PC it thinks it's a zip file. I don't know how to get it installed, but would love to try it out. An easy to use alarm is something I've been looking for on my MPx 220.

Thanks, dlogan1

Link to comment
Share on other sites

YOu need to install it directly on the smartphone.

Just push it to somewhere on the phone e.g. /temp

Than execute the file on the phone by file manager or internet explorer.

Thanks

Bruno

Link to comment
Share on other sites

Guest chucky.egg

This seems to be doing odd things to my Homescreen

If I put a bgcolour="#CC9900" (or any other value, other than "transparent") it seems to screw up the homescreen (removing the background image and the colour scheme)

So this works:

<plugin clsid="{61868840-7761-11D9-9669-0800200C9A66}" height="20">

<label state="alarmon">

<format state="unselected" halign="right" bgcolor="transparent" fgcolor="#CC9900" font-weight="bold" font-size="13" />

<format state="selected" halign="right" bgcolor="transparent" fgcolor="#FFFFFF" font-weight="bold" font-size="13" />

<text lang="0x0409" y="16" x="0" width="72"><alarmTime/></text>

</label>

</plugin>
But this doesn't:
<plugin clsid="{61868840-7761-11D9-9669-0800200C9A66}" height="20">

<label state="alarmon">

<format state="unselected" halign="right" bgcolor="#CC9900" fgcolor="#FFFFFF" font-weight="bold" font-size="13" />

<format state="selected" halign="right" bgcolor="#CC9900" fgcolor="#000000" font-weight="bold" font-size="13" />

<text lang="0x0409" y="16" x="0" width="72"><alarmTime/></text>

</label>

</plugin>

It's a great plugin though!

Lots of trial and error involved, but the end result is very cool!

Link to comment
Share on other sites

Sorry, background settings are not supported for single label elements... only for the whole plugin. I wonder if that's a bug or intention :roll: I know that I extended the label thing a bit (by the state)

Link to comment
Share on other sites

Guest MitzEclipse

I tried installing this to my storage card and phone - i clicked on the .cab file in File Manager. Nothing new appears on my home screen after several power cycles.

How can I get this on my home screen?

I'm using "Windows Default" as my home screen.

Thanks

Link to comment
Share on other sites

Plugins have to be integrated into homescreens.

To test it you can just switch your homescreen to my example via the settings menu.

To use it in "Windows Default", you would have to modify the XML settings of this (I dont know if the standard windows screens can be modified at all)? If you don't have the necessary knowledge, you might want to download a homescreen which uses my plugin, I'm aware of two yet:

http://www.modaco.com/index.php?showtopic=200482

http://www.modaco.com/index.php?showtopic=201385

Thanks

Bruno

I tried installing this to my storage card and phone - i clicked on the .cab file in File Manager.  Nothing new appears on my home screen after several power cycles.

How can I get this on my home screen?

I'm using "Windows Default" as my home screen.

Thanks

<{POST_SNAPBACK}>

Link to comment
Share on other sites

Guest badhusin
Plugins have to be integrated into homescreens.

To test it you can just switch your homescreen to my example via the settings menu.

To use it in "Windows Default", you would have to modify the XML settings of this (I dont know if the standard windows screens can be modified at all)? If you don't have the necessary knowledge, you might want to download a homescreen which uses my plugin, I'm aware of two yet:

http://www.modaco.com/index.php?showtopic=200482

http://www.modaco.com/index.php?showtopic=201385

Thanks

Bruno

<{POST_SNAPBACK}>

I am using home screen by rey of airfagev.com "Technet-MSDN with Clock". Can I have the alarm plugin there? It would complete the homescreen for sure.

Link to comment
Share on other sites

You can. I don't know this homescreen, but basically every homescreen is modifiable (if it's not prohibited by a license or something, but I think that's not really happening). You must have some knowledge about creating / editing homescreen XML definitions for this or ask the author of the plugin whether he would integrate the plugin.

Thanks

Bruno

I am using home screen by rey of airfagev.com "Technet-MSDN with Clock". Can I have the alarm plugin there? It would complete the homescreen for sure.

<{POST_SNAPBACK}>

Link to comment
Share on other sites

  • 2 weeks later...
Guest jakobdam

Very cool plugin! Thanks a lot mate!! ;) :D :D

I've made a version of an xml-file that fakes visibility --

Well, it's kind of a crap solution, but it works fine to me. I write "Alarm" on the screen in the xml of course - the only problem is that this writing doesn't turn bold along with the script hover I use... darn...

Here it is - try it and see for yourself if you're still confused about how it works:

http://www.jakobdam.dk/subs/mobil/homescreens/6/jdk6.zip

Just download, extract the zip and copy the xml and jpg to your Storage\Application Data\Home\ folder... :D

Edited by jakobdam
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.