yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] hugojungle:
Stripes

Hallo Zuinige Rijder

thanks for the "HowTo" info for inserting pictures.

By the way -- did you ever realize, that a 100 % bar creates 10,5 sections in a stripe???

Hugo the JungleDyret
[Windows Mobile Apps and Games] anoano:
BattClock registry size

I was not thinking about storage space which would be about the same via a file and quite small in both cases. But I believe overall registry size tends to slow down devices and for BattClock it became quite big with all the added options. Not keeping too many unnecessary registry entries would improve this and the file solution should be better in this respect. Anyway, thanks for thinking about it.
[Windows Mobile Apps and Games] ZuinigeRijder:
Indeed, the Italian does not need an update (beside the BattClock Press command which was already translated in earlier versions).
[Windows Mobile Apps and Games] ZuinigeRijder:
No, I would expect that it nicely divides into 10. What are your settings for the 100% bar?
[Windows Mobile Apps and Games] ZuinigeRijder:
I am busy with optimizing the registry for the default values (by removing them, not storing them). Actually, I managed to get even the executables a bit smaller by smarter filling in the defaults. Needs a bit testing though ;) However, only the storage size will help, not the execution time.
[Windows Mobile Apps and Games] ZuinigeRijder:
Bugfixes, optimizations and updated translations....

[APP] [Updated 11-01-2011] BattClock version 3.4.1 *NEW* 6 separate BattClock press commands

# Protect against OverflowException in Color Picker

# Fixed bug that selecting another font was not immediately reflected

# Save the BattConfig log also in the directory where the program is installed

# Only keep the non-default configuration values in the Registry, to save some KiloBytes of phone memory and Registry size

# Improved the size of the executables (5% smaller, 33 KB less space in total)

# New Czech translations, thanks to Konrad007

# Updated Russian translations, thanks to Vadim Bogaiskov

# Updated Spanish translations, thanks to jcmm

# Updated German translations, thanks to Tokl
[Windows Mobile Apps and Games] reidler:
Thank you so much for your work on this. I was setting up my Battclock. When I went to location I realized that I could only set up one location. I was going to ask you about that but decided to look through the forum and found that you just updated that to allow for 6 locations! I was running version 3.2.1. I just downloaded the new version 3.4.1 and will load it and play with it. I like that you set it up to allow for 6 press commands. My goal would be to display the number of new emails, sms's, voicemails, missed calls, reminders and allow the user to touch one - like emails - and go to the email program to see those emails. I also want to display the day-of-week, month, day, hours, minutes, seconds and am/pm. Tue Jan 11 10:23:34AM. I hope I can do all that. Of course I want to show the battery level. You have so much interesting information to show. How can I see it all?

You also wrote you might add a command to allow a soft reset (like in TouchLockPro).

Would that be in BattConfig? I would like that too. You have great ideas. This has made me like my phone much more. Please continue. Every time I read this I see better and better ideas!

(Please forgive me for repeating this request - if any of the readers knows of a program to control the vibrations - to be able to set up vibrate patterns - for new email, new sms, reminders, new voice mail, missed calls and phone calls please let me know. I tried Vibro 1.5 but it does not do reminders, voicemails or missed calls. The Touch Pro 2's native vibrations have no consistency and when it vibrates I have no idea what it's trying to tell me). Thanks.
[Windows Mobile Apps and Games] Tokl:
Hi,

MortScript can do that, but its not an out

of the box solution, you must set up scripts to observe registry.
[Windows Mobile Apps and Games] omek07:
Hello

I have a problem (on version 3.3 and 3.4) but i cant solve it

when i open my screen the clock its stuck for some seconds

What i can do for this ???

Thankssssssss
[Windows Mobile Apps and Games] jcmm:
Hello ZuinigeRijder,

It is a pleasure that people like you continue to actively develop good software for Windows Mobile unjustly killed. :)

Whenever you need my help for this issue of Spanish translations will be at your disposal. In his day and made a donation to the development of this excellent program yours. Thanks. :)

Regards,
[Windows Mobile Apps and Games] Tokl:
Did you enable Logging?

Because this is slowing down...

If not:

What clock did you mean? Sense or BattClock...

A bit more details would be helpful.
[Windows Mobile Apps and Games] omek07:
No i havent enable the log

i have stucks on clock - time of Battclock

What else do you wand to tell you ????
[Windows Mobile Apps and Games] NEO130:
How can I set the format of the words to the left and not in the middle ?
[Windows Mobile Apps and Games] ZuinigeRijder:
The text will be aligned in the middle. If the number of characters is fixed, you can just add spaces at the end of the Display format string. That will shift if to the left :rolleyes:
[Windows Mobile Apps and Games] ZuinigeRijder:
I do not see this behavior for my Touch Diamond.

What phone do you have? Special software? Standard Windows Mobile Home screen or Sense or something else?

Can you export your settings and post them here?

Can you also enable debug and try to reproduce and post the debug log file as zipped attachment? Maybe that gives me a clue.
[Windows Mobile Apps and Games] omek07:
I have the omnia 2 with WM 6.5.3.

I use Standard Windows Mobile Home screen with iphonetoday 1.5.4

i give you the battclock.reg.txt for the settings

How i can enable debug ???
[Windows Mobile Apps and Games] ZuinigeRijder:
In the About Settings screen enable LogDebug. Then stop/start BattClock (via Programs). Reproduce the scenario. Stop BattClock. Copy the debug log file in the install directory (normally "Program Files\BattClock\battclock.log.txt") and post it as zipped attachment.
[Windows Mobile Apps and Games] Homer-S:
Hi ZujnigeRijder,

I updated recently to 3.4. but no AppToDate files are created (what is the path for these xml files?) CDould it be a Language issue?

Thanks
[Windows Mobile Apps and Games] ZuinigeRijder:
The reference to the XML file is written in the registry:

HKCU\Software\MoDaCo\AppToDate\XML\BattClock

For me the content of this registry key is (dutch phone):

\Programmabestanden\BattClock\BattClock.xml

In the mentioned location, the AppToDate BattClock.xml file should be available.

The content is for 3.4.1:

Or did you use the zip version :confused:
[Windows Mobile Apps and Games] NEO130:
Thanks, is it more difficult to make it to the left for the next version ?
[Windows Mobile Apps and Games] Homer-S:
ok I created teh xml by hand now and it works.

my AppToDate XML files are stored in

\Application Data\AppToDate

Maybe it is due to installation on SD-Card ....
[Windows Mobile Apps and Games] ZuinigeRijder:
Maybe because there is a space in the path? What is the path on your SD-card?
[Windows Mobile Apps and Games] ZuinigeRijder:
Yeah, it is a configuration item.

In BattClock the text is displayed using the DrawText function:

The documentation of Drawtext shows a lot of formatting possibilities.

You request DT_LEFT instead of DT_CENTER.

A possibility could be a special prefix in the display format string, to indicate aligning to the left. But maybe other formats are also useful, like DT_RIGHT.
[Windows Mobile Apps and Games] NEO130:
Mmh, sorry, but where (which file) can I change it ?
[Windows Mobile Apps and Games] ZuinigeRijder:
Maybe you misunderstood. It is not available in BattCLock 3.4.1. So if I want to support it, e.g. the display formats should hint how to align......
[Windows Mobile Apps and Games] anoano:
You are really fast with your updates. Thanks a lot for the new version, the BattClock registry size in 3.4.1 is much smaller.
[Windows Mobile Apps and Games] reidler:
Hi. I was up late loading version 3.4.1 and trying to learn it. Thank you again very much for producing a quality product.

1. Are all of the Content items configurable or only the 3 DateTime Formats? In Display Formats I tried to change the 12h:mm by adding :%p and it didn't work. I think it even caused Battclock to exit and/or it made it show a long string of zeroes. It seems that I could only edit the DateTime Formats. ???

2. I wanted to set up the DateTime Format 1 to %a %b %d %I:%M:%S%p. I then set up the location for this (location #2 using the new v3.4.1 feature) (Location #1 is showing the battery level and temperature in the standard Battclock location) but that did not work. I had made the location X=0 and W=150 and other sizes to experiment but it did not work. It did not show the whole string. In the end I set up the location to have 2 Rows and one cloumn. I set X=0, Y=5 (to make room for the horizontal stripe above), W=120 and I left H=46. I then made Content #3 = DateTime Format 1 and Content #4=DateTime Format 2. Using Display Formats I set DateTime Format 1=%a %b %d and DateTime Format 2=%#I:%M:%S%p. That worked nicely and I now have the Date and Time covering the Windows logo and Start. I then set location #3 - X=120, Y=5, W=25 (for now), H=46 and left Rows=2 and I left the next 2 Content items empty. This is just to keep that are empty and not show half words that programs will put there. There's not much room left there before it bumps into the next system icon. I will see what other information I might be able to put there. I'd like to play with stripes. Maybe I'll put some vertical stripes in that area or other statistics like unread emails, sms, etc.

3. I installed Battclock on the storage card. Does that use more battery power? Are there any other bad side effects of using the Storage card. I want to keep the device memory as free as possible so the phone can run more efficiently.

4. Having the phone show the time including the seconds - does that use more of the phone's battery power?

5. When I look at the wifi and mobile information - all I see are zeroes. I clicked on RESET but don't see those numbers being updated. Should I?

6. I don't yet understand how to use the colors. What does Back Color G mean?

7. Right now the background colors of the locations I set are black. Some programs put other colors there and then the Battclock displays stand out in black. I checked on Detect Background but that did not seem to do it. I remember reading somewhere or maybe saw it on your video that there's a way to make the background transparent to whatever is there. Is that not right?

8. Thank you for the information about Mort scripts. I did a search but did not find enough information to learn how to set up the vibrations patterns.

Thank you so much for your program and your help.
[Windows Mobile Apps and Games] ZuinigeRijder:
I checked and indeed AppToDate does not work when installed on the SD-Card :mad:

In the registry the same path is stored and AppToDate is not searching on the SD-Card. This means, I think, I need to store the XML file in the directory of AppToDate or must have a full path to the XML file. Probably the first option is the easiest to fix, because I only know at run-time where the storage location is of the software. Another solution would be to check/set the AppToDate registry key when BattClock is started. Then this will also work for the zip variant, for people not using the installer :rolleyes:
[Windows Mobile Apps and Games] Tokl:
See in MortScript Manual Page 65 (9.22.3)

http://www.sto-helit.de/downloads/mortscript/MortScript-Manual.pdf

Greetz Tokl
[Windows Mobile Apps and Games] ZuinigeRijder:
Good to see people take time of customizing their phone to their needs. And they need to understand the wealth of possibilities with BattClock ;) and do the hard work by studying what is possible beyond imagination :D

Indeed you need to customize the 3 DateTime formats in Display Formats and choose them to display. The other preconfigured ones will just be filled as a string, so you can add static text in the display format (your name), but that it is.

Indeed you must play with where to put information, because the Taskbar space is limited. Actually, it would be cool when you can have multiple setups and switch between setups dependent of the needs, e.g. via a command :eek:

Normally it is advised to store programs in the phone memory. After installation, BattClock is small, 55 KB + 559 KB (the not used languages are removed the first time you start BattConfig). Actually you could move BattConfig (559 KB) temporarily to another place, because you only need this for configuration and move it back when you want to configure BattClock. In memory BattClock is only 2 KB, so that will not make a difference :rolleyes:

The problem with storing it on SD Card is when you enable log to file or debug logging. Then it may keep your phone from going into a deep sleep. Luckily BattClock reads everything in memory what it needs, so it will not access the SD Card after startup (assuming you do not log).

This means that once per second the BattClock area is updated and uses more CPU, but still very low (0,5% CPU). And this only counts when the display is on, because Windows Mobile is so smart to do this only when needed. En in a deep sleep, BattClock will not get CPU cycles and do nothing.

Those will be updated when the Wifi and mobile has been active once.

You can have a gradient color instead of a solid color. So the combination of BackGround Color and the Back Color G determines the Gradient pattern. But it is not often used, I think.

You can have a transparent look by having not a color but a background picture which matches your Taskbar theme. But if taskbar colors will be changed by other programs, the only way is indeed to use DetectBackGround. Make sure you specify the pixel X and Y position of an area not covered by BattClock or other items in the Others Settings screen.

Most of the information (incoming SMS, Mail, etc) , you requested is available via a registry key, I think. So if you can couple a mortscript command to a change of such a registry key and find out how to change/play the vibration pattern.......
[Windows Mobile Apps and Games] dzatara:
Here my feedback and my big THANKS for this exellent app.
[Windows Mobile Apps and Games] reidler:
Thank you. I downloaded the pdf file. I looked at the reference you pointed to - but still not enough information. Unless I invest time to learn that Mortscripts and see. Anyone know enough about it? What kind of things will it allow me to do? If it will allow me to program utilities or functions for the phone maybe it would be worth the read and time investment. Any reviews or opinions?
[Windows Mobile Apps and Games] reidler:
Uh oh. I think there is a bug. I noticed it yesterday but was trying to replicate it before I informed you about it. It happened 3 times in the last 30 hours. It usually happens (at least that I noticed it) after the phone was in a black screen sleep. I woke it up and noticed - the original location - location # 1 - The Battclock settings disappeared. It showed the original Windows Mobile clock and did not show the battery percent and the battery temperature as I have it set to. At first I thought maybe Battclock crashed but location # 2 - showing date and time - was still there!

It is as though location #1 was set to be inactive which of course it cannot be set to inactive.

One time when it happened I stopped and restarted Battclock and it was ok again. When it just happened again now I went in to Battconfig. Soon as I made a change (I set location # 2 to be inactive) then location # 1 popped back up again and has remained there. It remained there so far even after falling to sleep etc.

I am sorry that I have not yet discovered the cause. Thank you.
[Windows Mobile Apps and Games] Tokl:
Make sure that the Textual content and the stripes never covering / overlapping(eg 1 pixel...) another one.

Maybe this is the cause?

Greetz Tokl
[Windows Mobile Apps and Games] reidler:
I don't think that is the problem. I'm prety sure the pixels do not overlap. BUT, I noticed something else just a short time ago. I opened the keyboard (landscape mode) on my TP2 phone and noticed that the Battclock location # 1 (the standard location with the bettery level and temperature) showed up in middle of the title bar instead of in the same location from the right. Even though I have the X set to -106.

Also the fonts were not the same ones I set them to horizontally. I did click on SAME LOCATIONS FOR LANDSCAPE. Anyway - now that I was in there in the landscape mode I re-did the fonts (I pressed + and -) and I just had to touch the plus sign and minus sign for the location and then it popped to the correct place. I wonder if maybe that has something to do with it. Maybe it did not have the location X=-106 in there right. So far it's ok. I will keep watching to see if that problem happens again. Take care. Eli
[Windows Mobile Apps and Games] Tokl:
Hi,

if you are able to reproduce this bug, please enable logging and do the same steps again, maybe this will give ZuinigeRijder a glue.

But be aware, logging makes an huge file in an short time, so its not mentioned to run it all the time until "this" happens ;)

I know the first error happens for me only when i overlap some areas. :confused:

The second i cant test because i dont have an hardware keyboard. :rolleyes:

Greetz Tokl
[Windows Mobile Apps and Games] Tokl:
With this simple script can you test if MortScript is able to let your device vibrate (as i know, this is not working with all Phones:rolleyes:)

1. Install mortscript

2. create an file with extension *.mscr (for example vibrate.mscr )

3. Put following text (with notepad or an editor of your choice) in the file:

Vibrate(50)
Sleep(50)
Vibrate(50)
Sleep(50)
Vibrate(50)
Sleep(50)
Exit

4. Save the file

5. Run the file on you phone

Your phone should now vibrate 3 times.

For more you have to edit your own scripts that observe the registry for your needs and let the device vibrate when the state is changing;)

Greetz Tokl
[Windows Mobile Apps and Games] reidler:
Nope. It just happened again! I woke the phone after the phone was asleep & I looked at the top right side of the screen, at the title bar, and it was showing the WM clock. The left side was showing my battclock settings of date and time. So this time I opened the slide out keyboard and the top right of the title bar was good again. It showed the Battclock location #1 settings of battery level and battery temperature. So now I wonder if maybe it has something to do with being refreshed. Maybe that's why the top left shows ok because I am displaying time with seconds which makes it update every second. Maybe if I would wait until the battery level goes down a percentage point it might update. I don't know if that would work. I would have to wait until it happens again and then keep tapping the screen to keep it awake until the battery level goes down. Or maybe I should remove the seconds from my time display so it does not update every second and see if next time that does not come back either.

What do you think? Thanks. Eli
[Windows Mobile Apps and Games] ZuinigeRijder:
I think it is a problem somewhere in BattClock code related to switching from landscape to portrait. I have seen this behaviour once in the WM emulator, switching to landscape and back to portrait. It showed the clock in landscape, but when switching to portrait it looked like it did not get a Paint anymore (although instructed) :mad:

I have already looked at the differences in source code with earlier versions. But no clue from that. I tried to reproduce with the WM emulator, but no luck yet.

Having showing the seconds should not matter, BattClock should robust for this situation. Hmmm, will be a difficult one to find a needle in the haystack :(
[Windows Mobile Apps and Games] reidler:
Yes, this works. I just tested it. I created the file you said. I copied and pasted into a file named vibrate.mscr on my PC. Then I bluetoothed the file over to my phone and clicked on it and it vibrated 3 short and fast vibrations.

This is good. Now the question would be how to monitor incoming emails and text messages, calendar reminders, phone calls, voice mails, missed calls. etc.

The monitoring program could use this type of script. Thanks. Where do we go from here? Eli
[Windows Mobile Apps and Games] ZuinigeRijder:
This link gives a long list of registry keys you can monitor

e.g. monitor status changes of:

PhoneActiveCallCount

MessagingSmsUnread

MessagingTotalEmailUnread

MessagingVoiceMailTotalUnread

PhoneMissedCall

CalendarEvent
[Windows Mobile Apps and Games] reidler:
I'm sorry that I found this problem. Battclock is very robust already. But I guess a bug needs to be fixed (I'm a programmer too). I did not notice this problem when I was running the version 3.2.1. By allowing multiple locations and having a switch to enable or disable them I was thinking it has something to do with location # 1 acting as though it was disabled or the code might be missing to display location # 1. Maybe because until now it was a given to always display since it was the only location and now that you have to have code check if enabled/disabled maybe somehow location # 1 was passed over. I don't know the code so I'm just making a guess. Thank you for checking in to it and good luck.
[Windows Mobile Apps and Games] Tokl:
Hmm,

maybe it would be cool for some people if here (regkey)

is an checkbox for "vibrate on status change"

(just thinking loud)

Greetz Tokl
[Windows Mobile Apps and Games] reidler:
There is something going on with landscape. I just opened my phone up again in landscape mode (I opened the keyboard) and the fonts are wrong again. They Battclock settings are still there -both locations are in the correct places and displaying what they are suppsoed to but the fonts reverted to Tahoma even though in Battconfig they still show the fonts that I assigned to them.

Oops. I tried to reset the fonts again for landscape mode and it wasn't taking. Then after exiting - it moved the location # 1 back to the middle and showing the WM clock at position -106.

ok. I just did some experimenting. I kept it open in landscaoe mode. I went in to Battconfig and to Fonts. I had to change the font size by pushing on +. Then I had to click on OK. It then got the correct font back again. Soon as I did that - location # 1 jumped back to the proper position of -106! Then I went back again and pushed on - (subtract) and clicked on ok to get back to the same font size again. Soon as I did that to the first field - I started on item # 4 in location # 2 first. I had to do that + and - for each item to get it to get the correct font again. I hope this information helps you. I wish I had more concrete specifics.
[Windows Mobile Apps and Games] ZuinigeRijder:
By default only location #1 will be moved to the right, the other locations will stay at the same place when switching to landscape. I did check the differences in source code between 3.2 till 3.4.1 but that gave me no clue. Probably I must try harder to reproduce on the WM Emulator. I guess it is somehow a race condition, which only occurs occasionaly when swithing to landscape and back.

By the way, the source code is available.

The problem will be in the sourcefile clock.cpp

The ClockPaint seems not to be triggered anymore, so I expect the change from Landscape to Portrait is not setting back to BattClock area correctly always..........(InitMoveWindow function call)

void ClockPaint(HWND g_hClockWnd, int item) {
if (g_hClockWnd == NULL) {
LOGDEBUG("ClockPaint: nothing to do");
return; // nothing to do
}

LOGDEBUG2("ClockPaint()", item);
bool isPortrait = IsPortrait();
if (isPortrait != previousPortrait) {
LOGDEBUG2("ClockPaint: orientationChanged", isPortrait ? "Portrait" : "Landscape" );
previousPortrait = isPortrait;
InitMoveWindow(isPortrait, item);
InitMoveStripe(isPortrait);
}
....
[Windows Mobile Apps and Games] ZuinigeRijder:
Probably this is a separate issue, I will also look into this one. Because it could be a lead to the other problem.