yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] reidler:
:) EXCELLENT! PERFECT! It's perfect so far!.

;) I see the number I need to put in is 9110001 (or 1120001 or 10230001).

:D It worked perfectly. It's exactly what I has hoping for. I still have more tweaking to do. I need to now figure out what vibrate patterns to use for each notification. I turned off the system notifications and am now using the ones through Battclock.

Also I tested a little bit of the counters/timers in the Total Recharge Minutes. I again tested by using that 25 second sound and watched it. The Battclock clock setting continued to show the seconds ticking even while that long sound was playing - unlike in version 3.8 when it stopped. I also watched and saw that the Recharge Minutes counter incremented while the sound was playing. But I didn't spend too much on testing that. I'll do that tomorrow when it gets reset after charging overnight.

:o :o :o THANKS SO MUCH FOR SUCH AN EXCELLENT PROGRAM! :o :o :o

Eli
[Windows Mobile Apps and Games] ZuinigeRijder:
In you use case you should set the High Number to 9110001, the low value can remain 0.

Probably I need to explain a little bit better how to use it. I will post an example later (and put that in the documentation).
[Windows Mobile Apps and Games] ZuinigeRijder:
Good to see that it is working as you were hoping for.
[Windows Mobile Apps and Games] ZuinigeRijder:
Silly problem of the vibration by Windows Mobile. In TouchLockPro, my other program, I detect Incoming, Connected and Ended call using the Telephone API interface.

Unfortunately I do not write those events to a registry key, otherwise you could couple a sound/vibration to it by using the combination of BattClock and TouchLockPro. Note that I use myself also the combination of BattClock and TouchLockPro, the latter for avoiding dialing in my pocket and missing calls. Wondering if you use a locking solution? Anyway, even the locking features of TouchLockPro could be disabled and so you could use only the TAPI.

And you can couple commands to Incoming, Connected and Ended, but I do not know how to use this for your usecase, e.g. an external program setting a registry key for those 3 events......but better would be of course that TouchLockPro also writes the TAPI status to the registry.

Another interesting thought of me is of course, do you need to have your phone vibrating/ringing till you pick up or reject the call. If you have heard it ringing/vibration, it does not need to keep ringing/vibrating till rejected or picked up :rolleyes: Also BattClock cannot cancel the sound, cancelling vibration would be possible but also something special has to be done :cool:

Anyway, nothing you can use out-of-the-box but I was just brainstorming ;)

I think it indeed has some rounding problems when coming out of deep sleep. Probably I can improve on this, but that needs extra investigation effort.

Maybe I can combine that with new translations. I am hoping that others provide not complete translations, because I am missing up-to-date translations for: :):):)

- Russian translations, thanks to Vadim Bogaiskov

- Chinese Simplified translations, thanks to zhongzw

- Chinese Traditional translations, thanks to victorchen101

- Spanish translation, thanks to animalote and jcmm

- French translations, thanks to YoLoLo

- Italian translations, thanks to tigro11 and ephestione

- Norwegian translations, thanks to longice

- Hebrew translations, thanks to Som30ne

- Polish translations, thanks to pupakota alias nothin

- Greek translations, thanks to padvou and colossus_r

- Arabic translations, thanks to khaeid

- Korean translations, thanks to sinfancy

- Serbian translations, thanks to slavissa

- Czech translations, thanks to Konrad007

- Hungarian translations, thanks to thorvath812

- Slovak translations, thanks to sirus

I can imagine most of the translators already moved to another Mobile Operating System :mad:

But if new translations are provided then I spent some time in investigate the missed minutes :eek:
[Windows Mobile Apps and Games] ZuinigeRijder:
I understand. Strange problems with your phone. But if it works now as you configured it now, it make sense to keep as close as possible to that configuration.

Indeed. However, I found the rounding error and have now a solution which exactly can detect the missed minutes and missed seconds because of a deep sleep. I will post that in a next update.

The sound is going through the speaker, so the sound is played but you will not hear the sound. Vibration is different. There is not an uniform API to vibrate, so BattClock (and other programs) access them directly. And because it is not a speaker thingy, but the vibration of the battery, you cannot silence that.

I do not know if there is a registry key, that BattClock can check if also the vibration is off. Because the setting should be there somewhere. If that is the case, BattClock could fist read that registry key, before actually vibrating. Maybe you can search for that registry key, by checking the difference in registry keys between Vibration on and Vibration off? Otherwise I have to investigate myself.

Another solution would be a small utility to rename temporarily the vibration pattern registry key (or do that manually). That utility could also silence the sound, because that is also a registry key. But that is less comfortable and more of a hassle.
[Windows Mobile Apps and Games] jcmm:
Hello ZuinigeRijder,

I enclose the translation file updated to the Spanish.

Best regards,
[Windows Mobile Apps and Games] reidler:
This is exactly what I was hoping you would say. That's the idea that makes the most sense. I'm thinking that there must be a setting somewhere because there is an icon marker at the top right of the phone that shows 1. speaker on, 2. vibrate on or 3. silence mode on. If the phone is reset, when it turns back on it knows what mode it was in when turned off and continues in that mode. So I believe there must be a registry setting. I don't have too many tools to search with but I will try. I have Total Commander that can search the registry but I have to try guessing what keys to search for. If I could save the registry - then turn on silence mode and search for differences I would hope that would find it. I don't have such a tool but I'll try to see what I can do.

Thank you. Eli
[Windows Mobile Apps and Games] reidler:
Hi. I'm sorry but I think I discovered some type of bug. I tried to gather as much information for you before I posted this but I have not yet figured out how this happens.

I noticed that the battery level and Total Recharge Minute counter disappears from the screen. To get it back I have to stop and restart Battclock. I noticed it a few times last week so I took a picture of the screen after it disappeared and then again with it back on after restarting Battclock. I then started running the log file and waited until it happened and then saved it. So I attached the two pictures, the log file and my Battclock settings. If there's anything else you need please let me know so I can get it for you. The log file is long (11 megabytes). I saved it soon as I noticed it so the problem would be towards the end of the file. I noticed it in middle of the night.:confused:

I have 3 "locations" set up. Location 1 is 2 rows and 1 column. It shows the battery level and Total Recharge Minutes. Location 2 is also 2 rows and 1 column. It shows the day,date and time. Location 3 is 3 rows and 2 columns. It shows my notifications. It seems that the problem is with the whole location - location # 1 - since both content items disappear together. Sorry for having found a problem.

Thank you. Eli
[Windows Mobile Apps and Games] pupakota:
I feel embarassed for making no updates, but since program is more and more oriented for HTC, qualcomm/samsung cpu based devices only, i dropped using it.

Problem is, that most needed functions are not working for me, i may make full list in free time - it may save time for other users of xscale machines.

Another thing is, that my way of seeing today screen led me to making EVERY element onscreen clickable(with two functions per element - tap and tap'n'hold). Battclock still has no functions-per-item, so, its usability is limited, imho(just visuals are not enough for me).

And another thing - i made rom that can use two resolutions, i can just switch between qvga and vga, i am too lazy to make two configurations for battclock for both.

So i ended up with good, ol' hs++(and vga=0 per item to scale whole skin automatically).

And final reason:

I lost THOUSANDS of hours for helping wm users for years, and i am tired already...i am banned everywhere since android took over(and viral campaigns on polish forums started - new people from nowhere showed up, and many of old fanatics are gone in result). Since i cannot afford to get android device they are advertising, i am not useful anymore. And it's ok.

I will not stop using WM, all i know, btw.
[Windows Mobile Apps and Games] ZuinigeRijder:
No problem. Anyhow thanks for the translations in the past.
[Windows Mobile Apps and Games] ZuinigeRijder:
Thinking about, in your use case it will not make sense. Because you never want to enable vibration by the default windows incoming call :rolleyes::rolleyes:. So it will always be disabled :eek:. So you have to tell BattClock in another way that it should not vibrate.......and that comes back into an external program renaming the vibration registry key temporarily....

Or putting the phone in flight mode:confused: Then BattClock should detect flight mode and do no vibration then?
[Windows Mobile Apps and Games] ZuinigeRijder:
I will have a look at the log file. I assuem it occurred on 13 Januari around 3:58 PM? The log file contains data from 14 Januari onward. Did this problem also occur in the log file and at which time??
[Windows Mobile Apps and Games] reidler:
The problem happened a few times since I installed 3.8.1. Maybe 5 times over the week. I turned on the logging. I woke up in middle of the night and noticed that it happened again so I stopped Battclock to save the log file for you and would send it to you in the morning. I think it happened on January 15th in the early morning. Oh, you think that it was the 13th because the screenshot shows that. That's when I first noticed it and took the snapshots but I did not have the logging turned on. I turned it on and it happened again on January 15th early in the morning.

I have 2 more tidbits of information to add that I hope helps you. It happened again last evening. But then I noticed that if I opened the keyboard and the phone went in to landscape mode - it DID show that location #1 with the battery meter and recharge minutes on the top right of the screen. Then when I closed the keyboard and it went back to portrait mode it did not show anything in the top right. :confused:

Also - I noticed that as I deleted some of the calendar reminders and the registry key was updated with a lower number Battclock did not show the update in location #3. Even though I still saw the clock time being updated. I also had to stop and restart Battclock to get it to work correctly again. But when that happened location #1 was still ok.

I'm sorry for the problems. Does this information help you figure it out any more?

Eli

---------- Post added at 01:24 PM ---------- Previous post was at 01:03 PM ----------

I'm not sure what you mean. I always have my phone turned on with sound and vibrate on. Some times I put it in to vibrate mode with the sound off and then it's ok to vibrate and sometimes if I go into a meeting then I want the phone to not ring nor vibrate for that time but I want it on so I can see who called me.

So the best way is to find a register key or where on the phone it saves the flag telling us if it is in silent mode (no sound/no vibrate) and then I would like Battclock to look at that key and not vibrate.

I saved the registry using PHM tools when sound was enabled. Then I saved it again in silent mode with sound and vibrate disabled. Then I wrote a program to go through the two backup files byte by byte to find the difference. Unfortunately that idea did not work. Even though nothing on the phone was changed between the two backups the files were not identical at all. I even tried a controlled experiment where I saved the registry twice with no difference but my program found many differences.

I also tried looking through the registry to see if I could spot where the key might be. No luck. I also looked on the web for help. No luck. How can I find where that information might be stored. It must be there someplace because (as I said) if I turn on silent mode or vibrate mode and reset the phone, when it turns back on it knows to go back in to that mode.

Thank you.

Eli
[Windows Mobile Apps and Games] ZuinigeRijder:
In the past there was a problem between switching between landscape and portrait.

[APP] [Updated 15-01-2011] BattClock version 3.4.2 *NEW* 6 separate BattClock press commands

- Fixed bug that BattClock could disappear when switching between landscape and portrait in combination with more BattClock areas

Is it possible that the negative size of ClockX gives the problem? You can also configure landscape and portrait independently (so without negative values)? Just start BattConfig while in landscape mode and it will set the landscape values.

Maybe you can force to reproduce the problem by switching regularly between landscape and portrait (with debug logging enabled). If you not the exact time, it is easier to investigate this issue.

Not all people have by default vibration enabled for incoming calls :eek: But maybe they still want to use the vibration mechanism of BattClock. So then it would be a combination of Volume to zero and no vibration set (silent mode) :confused: I will have a look at the registry key also.
[Windows Mobile Apps and Games] reidler:
I remember when you fixed the problem last time when switching from landscape and portrait.

Yes, I have logging turned on and I have been trying hard to make it happen again. But it's not up to me yet. I will keep tying. I keep switching from landscape to portrait but it is working fine now.

Eli
[Windows Mobile Apps and Games] ZuinigeRijder:
I exported the registry with http://www.dotfred.net/TaskMgr.htm to a reg file without and with silent mode. And then compared the result.

These were the changes:

[HKEY_CURRENT_USER\ControlPanel\Volume]
"Volume"=dword:ffffffff
"Ringer"=dword:ffffffff

+

[HKEY_CURRENT_USER\ControlPanel\Volume]
"Ringer"=dword:00000000
"Volume"=dword:00000000

So the volume of the Windows Mobile and phone ring was set to 0.

[HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0]
"Sound"="\\My Documents\\Mijn beltonen\\3214-Crazy_Frog-Popcorn.mid"
[HKEY_CURRENT_USER\ControlPanel\Notifications\ShellOverrides]
"Mode"=dword:00000000

+

[HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0]
"Sound"="*none*"
[HKEY_CURRENT_USER\ControlPanel\Notifications\ShellOverrides]
"Mode"=dword:00000002

This post is talking about this registry key:

For PPC 2002/2003:

\HKCU\ControlPanel\Notifications\ShellOverrides\Mode

2 for Mute mode.

0 for Not-mute mode.

(Not sure if other bits are used here for other things).

I've found that changing this TO 0 (not-muted) FROM 2 (muted)

works to set the radio button on the volume controller to "on" from

"off" but not the other way around.

(Yes--This makes the radio buttons on the volume controller

out-of-sync with the icon on the nav bar.)

I checked with vibrate only setting.

[HKEY_CURRENT_USER\ControlPanel\Sounds\RingTone0]
"Sound"="*vibrate*"
[HKEY_CURRENT_USER\ControlPanel\Notifications\ShellOverrides]
"Mode"=dword:00000001

So it looks like:

- Mode = 0 Volume on

- Mode = 1 Vibrate only

- Mode = 2 Mute all
[Windows Mobile Apps and Games] reidler:
I like it very much this way that I do not use the phone's vibrating mechanism anymore Soon as I got Battclock 3.8.1 to work with your enhancements, I turned off the phone's vibrating on all notifications - except for phone calls that I still use because Battclock doesn't control that. But it's a good feature to have the three modes:

Sound on/vibrate on,

Sound off/vibrate on and

Sound off/vibrate off.

(I don't think there is a setting for sound on/vibrate off in the phone).

Silent is a good feature because even vibrate makes noise and people in a meeting can get mad. So we need to be able to turn vibrate off also.

Thank you so much for looking in to this. I will also still try to find the registry key.

Eli

---------- Post added at 02:53 PM ---------- Previous post was at 02:43 PM ----------

WOW! Neat! You found it so fast. I spent all morning on it writing utilities. But I did not have the correct utilities to work with.

I just checked HKEY_CURRENT_USER\ControlPanel\Notifications\ShellOverrides]

"Mode" and found exactly that. 0=volume on. 1=vibrate only. 2=mute all (vibrate off).

Is it enough for Battclock to use just this one registry node? Do you need any of the above also? You don't have to set anything. right? You just have to examine it to see if the user turned on the silent mode setting and then not issue the vibrate command. Unless you want to be more elaborate and if you see the user turned off sound and left vibrate on to not have Battclock issue the sound even though it looks like the phone accomplishes that by turning off the speaker hardware. ???
[Windows Mobile Apps and Games] ZuinigeRijder:
Yes, BattClock will just check HKCU\ControlPanel\Notifications\ShellOverrides\Mode is not 2 just before vibrating. So it will not vibrate in Mute mode. The sounds indeed are already disabled by the volume, so it will be silent anyway. I will post that 'automatic feature' in the next update.
[Windows Mobile Apps and Games] reidler:
Fantastic! Thanks again.:):D;):p:o
[Windows Mobile Apps and Games] anoano:
CeRegEditor can compare registry images

@ZuinigeRijder and @reidler

I think CeRegEditor can help you. It is a free registry editor for any device (PDA) based on WindowsCE, PocketPC2003 and WindowsMobile(WM5, WM6) system.

It runs on desktop PC but operates on a mobile device.

Main features:

Create/edit XML files (privisioning) - new!!!

Navigate and edit (create) registry keys/values

Fast search

Export/import keys in REG format

Management of favourites keys in registry

"Image" of registry with compare and restore service

Offline mode - create, edit files as regular device registry

Support for HV files edition!

Here is the link : http://ceregeditor.mdsoft.pl/
[Windows Mobile Apps and Games] reidler:
Thank you very much. I am checking it out. Very nice of you.

Eli
[Windows Mobile Apps and Games] reidler:
Hi Zuinige.

The problem happened again. I still have no idea of what happened. I was talking on the phone and when I hung up I noticed location #1 disappeared.

I also noticed that the "Reminders" stopped updating on the screen even though the register it looks at did change. The Reminder item looks at register HKLM\System\State\Reminder\Count\APPT. The other items still did update. The voice mail and email registers was updateed on the screen as the registers changed. Just the Reminders stopped and location # 1 disappeared.

I opened the keyboard for the screen to go in to landscape mode. Location#1 did show up again in landscape (I was going to take a screenshot but it got fixed before I had a chance). But even in landscape mode the "Reminders" item still did not update and had the wrong number in it (it was not the number that was in the register).

I closed the keyboard and the screen went back to portrait and location #1 still did not show up on the top right of the screen. The Reminders still did not update.

Then I opened Battconfig. I wanted to see if the register entry was set up correctly for the Reminder item. As I checked Battconfig updated Battclock and then everything started working again properly. It updated the Reimnders number and location#1 showed up again in the right place. So I then stopped Battclock and saved the log. I will attach the log. You should see the switch to landscape/portrait modes in there. You should be able to see that the Reminders did not update on the screen though the email item did. These thingswill show at the end of the log file.

Would you also like the Battconfig log?

I'm sorry I have no more leads yet but I will keep trying to figure it out and see if I can find exaclty when it happens and see if I can MAKE it happen. :confused:

Thanks,

Eli
[Windows Mobile Apps and Games] ZuinigeRijder:
pffff, difficult to find a pattern in the log file :mad:

But I think I found the problem :eek:

For the sound/vibration in the background I had to implement a simple queue. I have a maximum queue of length 4 (for sound or vibration playing). However, in the logging I see:

2012-01-16 20:10:20 -858009310 Queue remove index: 0

2012-01-16 20:10:26 -858009310 Queue remove index: 1

2012-01-16 20:10:28 -858009310 Queue remove index: 2

2012-01-16 20:10:29 -858009310 Queue remove index: 3

2012-01-16 20:10:30 -858009310 Queue remove index: 4

So I have an index out of range, it should never have been showing 4, because in the programming language C the index starts at 0 :cool: Actually, I did not want to think about the implementation too much, so I just copied/paste the code from internet. So never trust code from internet :p So only when too many sound/vibration events are accumulated (e.g. some events after each other, while playing a long sound) will fill the queue over the limit (one too much), causing the problem. It should have stopped adding the sound/vibration when the upper limit was reached, but there is a one-off problem.

So now you can possibly reproduce easy ;);)

Another observation of the settings. I see that for the BattClock locations you have set the height to 46 and the Y to 5. But I believe the top bar area is maximum 50 pixels. So you could write outside the top bar area. I would expected you did configure 45 instead of 46 for the height. Apparently it does not harm, but it is better not to set outside the actual area. Maybe I am wrong about the 50 :confused:

Anyway, I will fix the queue length problem......
[Windows Mobile Apps and Games] ZuinigeRijder:
[APP] [Updated 17 January 2012] BattClock version 3.8.2 *NEW* Sound/Vibration

- Fixed bug with queue of background vibration/sound

- Further improved accuracy of counters when having been in deep sleep

- Do not vibrate when in Mute mode (HKCU\ControlPanel\Notifications\ShellOverrides\Mode is 2)

- Do not play sound when in vibrate only mode or Mute mode (Mode is 1 or 2)

- Updated Spanish translation, thanks to jcmm

Completed myself translations using "Google translate" (sorry if the translation is incorrect) for the languages:

- German

- French

- Hebrew

- Hungarian

- Italian

- Korean

- Norwegian

- Polish

- Russian

- Slovak

- Chinese (Simplified), probably not translated well

- Chinese (Traditional)
[Windows Mobile Apps and Games] reidler:
Ok. I was in meetings. The problem happened again and I was going to send you another log before I saw this. I checked the log myself and also see index: 4 in there being used towards the end of the log file - around the time I noticed the problem again. So I downloaded 3.8.2 but I have to go to another meeting so I'll install it in a little bit. Thanks very much. I can't wait to install it later.

Indeed I probably filled the queues up because when Flexmail downloads emails, lets say it's going to download 10 emails. As each one comes in one at a time it increases the registry for each one and Battclock plays the sound/vibrate each time the registry shows another increase. So if Flexmail downloads some short emails within the same second then I get one sound/vibrate for those. If there's a big email then it could take a few second to download it. So out of 10emails I will get several sound/vibrate messages. That's probably how I filled the queue. Maybe I will experiment by changing the Battclock to poll every two or even 3 seconds in order to lower the extra sound/vibrates. I'll see. I'll ask your opinion after I do some testing.:):):)